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

编译失误了,真奇怪

2013-02-04 
编译出错了,真奇怪!#include iostream#include listvoid main(){listint MyInt}error C2065: “list

编译出错了,真奇怪!
#include <iostream>
#include <list>

void main()
{
   list<int> MyInt;
}

error C2065: “list”: 未声明的标识符
error C2062: 意外的类型“int” 
搞不懂啊,明明已经#include <list>
还提示“list”: 未声明的标识符
大家放到自己的编译器试试?
我用的是VC2005
[解决办法]
using namespace std;

热点排行