首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > C++ >

vc6.0中用vector<string>为何发出警告?该如何解决

2012-02-12 
vc6.0中用vectorstring为何发出警告?//这样一个程序,编译发出4个警告#includestdafx.h #includeiostr

vc6.0中用vector<string>为何发出警告?
//这样一个程序,编译发出4个警告
#include   "stdafx.h "
#include   <iostream>
#include   <vector>
#include   <string>
using   namespace   std;

int   main(int   argc,   char*   argv[])
{
vector <string>   v_str(5);
                  /*
                  //.......................
                  */
return   0;
}

[解决办法]
#pragma warning(disable:4786)

加上这句
[解决办法]
VC6啊,当没看见即可。不过,尽早扔了VC6吧,用VC6学C++就是浪费生命。
换VC2005express或者devcpp

热点排行