2016年1月23日

摘要: 18.1异常处理try { // actions that cause an exception to be thrown}catch (...) { // work to partially handle the exception throw;}在C++中,通过throwing... 阅读全文
posted @ 2016-01-23 21:38 峰入云 阅读(203) 评论(0) 推荐(0)
摘要: 17.1类型tuple tuple是类是pair的模板。每个pair都不相同,但是都有两个成员。而一个tuple类型会有任意数量的成员。(定义在tuple头文件中) tuple<T1,T2,...,Tn> t; t是一个tuple,成员数位n,第i个成员的类型为Ti。所有成员都进行值初始化 tupl 阅读全文
posted @ 2016-01-23 17:47 峰入云 阅读(446) 评论(0) 推荐(0)

导航