作者david830317 (dd810)
看板C_and_CPP
标题[问题] throw catch try的问题
时间Fri May 13 15:54:17 2016
开发平台(Platform): (Ex: VC++, GCC, Linux, ...)
xcode
额外使用到的函数库(Library Used): (Ex: OpenGL, ...)
问题(Question):
不确定是不是catch不到讯息...
喂入的资料(Input):
24
预期的正确结果(Expected Output):
hourout
错误结果(Wrong Output):
没有出现hourout
程式码(Code):(请善用置底文网页, 记得排版)
http://ideone.com/Rfknmu
补充说明(Supplement):
throw放那边是因为老师功课要求...
老师上课没有讲清楚(就写有try throw catch这种用法...)
所以对throw try catch这方面的概念实在不清楚...
--
※ 发信站: 批踢踢实业坊(ptt.cc), 来自: 172.250.212.103
※ 文章网址: https://webptt.com/cn.aspx?n=bbs/C_and_CPP/M.1463126061.A.08A.html
1F:→ IKAFIRE: 其他问题先不论,你根本就没有呼叫settime当然不会throw 05/13 16:00
2F:→ david830317: 谢谢大大!!!问题解决了OTZ 05/13 16:31