在VC6里,头文件写为#include<iostream.h>在新的标准库使用时,需要如下所示:#include<iostream> using namespace std; 问题在使用CodeLite V9.0.3时使用g++编译器发现。