环境:VS2005
代码:
#include "stdafx.h"//在stdafx.h添加include <iostream>
using namespace std;
int _tmain(int argc, _TCHAR* argv[])
{
cout<<"argc="<<argc<<endl;
for(int i=0;i<argc;i++)
{
wcout<<"argv[0]="<<argv[0]<<endl;
}
cin.get();
return 0;
}
错误:
未处理的异常: 0xC0000005: 读取位置 0x00000000 时发生访问冲突