为什么我的VC++6.0提示没有print.hpp头文件???紧急求救!!!拜托各位了 3Q
答案:1 悬赏:0 手机版
解决时间 2021-01-14 02:32
- 提问者网友:十年饮冰
- 2021-01-13 14:59
为什么我的VC++6.0提示没有print.hpp头文件???紧急求救!!!拜托各位了 3Q
最佳答案
- 五星知识达人网友:行雁书
- 2021-01-13 16:38
STL和C++标准库里都没有print.hpp这个头文件。 如果你要找的是这个: #include template inline void PRINT_ELEMENTS (const T& coll, const char* optcstr="") { typename T::const_iterator pos; std::cout << optcstr; for (pos=coll.begin(); pos!=coll.end(); ++pos) { std::cout << *pos << ' '; } std::cout << std::endl; } 另存为print.hpp,放到合适的位置。
我要举报
如以上回答内容为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
点此我要举报以上问答信息
大家都在看
推荐资讯