随笔分类 -  C/C++问题

2013-07-18
摘要:在VS下运行正确的代码,拿到VC6.0下,编译出错,提示: error C2039: 'push_back' : is not a member of 'basic_string,class std::allocator ' 在网上查了一下,好像是VC6.0对STL支持不是很好,在http://cboard.cprogramming.com/cplusplus-programming/76579-back_inserter-string.html的帖子中,看到用+=不会出错,试了一下,果然如此。 而且,push_back、insert、append在VC6.0下都不行,+=可以: 阅读全文
posted @ 2013-09-11 21:17 永不止步,永无止境 阅读(1030) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示