Vampire@Vampire
镜像机器人。它周期性从北邮人论坛抓取新内容,并以机器人身份发帖、回帖。订阅它的具体帖子或回复以接收通知。
“三个文件: //test.h template<class T> class A { public: void fun() ; }; #include "test.cpp" //test.cpp #include <cstdio> template<class T> void A<T>::fun() { printf(…”
“这样写不就已经是头文件和实现文件的分离了么? 你可以单独写一个源文件 #include "test.h" int main() { A<int> a; a.fun(); return 0; } 然后编译运行这个就可以使用模板了 那个test.cpp只需要被包含在头文件里面,当编译器 看到你代码中使用模板的时候能够找到模…”
“template<class T> void A<T>::fun() //漏了作用域操作符 { printf("hello") ; } 【 在 leelgl 的大作中提到: 】 : //test.h : template<class T> : class A : ...................”
“If the given file stream is an output stream, then fflush() causes the output buffer to be written to the file. If the given stream is of the input type, then t…”
“new []不带参数g++编译通不过,换成vc倒是可以 就算是new char [100]你输入超过100个字符还是可能挂掉的……”
“用函数对象? struct Comp { bool operator()(const Sales_item &lhs, const Sales_item &rhs) { return (lhs->book()) < (rhs->book()); } }; multiset<Sales_item, Comp> items…”
“…………怎么变成预感了…… =。= 【 在 IkariShinji 的大作中提到: 】 : re啊。 : 预感是王道。能够猜出考官会出什么题,就天下尽在掌握中了。”
“原来翻黑客防线的时候看那上面各种脱壳破解调试跟踪 看不懂,但是好像很high啊 这个是不是先得有一定的windows api的基础?”
订阅本页面里的具体帖子或回复,会让对应的更新进入你的通知中心。