一直以为创建新项目时,VC6创建的Win32控制台程序自带的include "stdafx.h" 就可以直接使用namespace,百度知道才知道,要使用namespace 需要在开头引入<iostream>即
include<iostream>
using namspace std;
//........
否则会编译过程会报出一下
错误:
error C2871: 'std' : does not exist or is not a namespace
前车之鉴,大家要小心。