文章分类 -  C++

摘要:include一个定义结构体的文件typedef.h编译出现了error: 'string' does not name a type查资料http://blog.csdn.net/niro_z/article/details/8028996得到提示,要在string改为std::string就OK... 阅读全文
posted @ 2015-09-01 10:51 firerdong 阅读(19039) 评论(0) 推荐(1)
摘要:1.不需要参数和返回值的函数模板class Test { public: template void getInfo();}; template void Test::getInfo(){ A a = new A(); B b = new B(); T... 阅读全文
posted @ 2015-08-31 15:41 firerdong 阅读(95) 评论(0) 推荐(0)