摘要: 有三个文件: Test.h Test.cpp main.cpp 运行就会出现错误: main.cpp:6:20: error: the value of 'test::a' is not usable in a constant expression case test::a: 这里的错误提示很直观 阅读全文
posted @ 2017-01-23 09:45 withparadox2 阅读(1046) 评论(0) 推荐(0) 编辑
摘要: 如果不调用removeStack打印出来是3,如果调用打印出来则是5! 阅读全文
posted @ 2016-08-24 13:51 withparadox2 阅读(234) 评论(0) 推荐(0) 编辑
摘要: 参考这篇文章:http://blog.csdn.net/linyt/article/details/6336762 阅读全文
posted @ 2016-08-24 11:00 withparadox2 阅读(218) 评论(0) 推荐(0) 编辑
摘要: 这篇文章基于requirejs-2.1.11来分析其加载js文件的流程,而对requirejs其他相关内容不做过多探讨,如有其他方面的需求可参考其规范:http://www.requirejs.cn/或者自行阅读源码。 一般使用requirejs加载js文件有以下两种方法,一种是定义data-mai 阅读全文
posted @ 2016-07-11 21:42 withparadox2 阅读(503) 评论(0) 推荐(0) 编辑