帮忙看一个头文件包含问题
程序很简单,是这样的:
#include <iostream>
#include <string>
using namespace std;
int main()
{
string username;
cout << "please enter your name: " ;
cin >> username;
cout << "hello " << username << endl;
return 0;
}
然而把头文件改成:
#include <iostream.h>
#include <string.h>
程序就通不过了
请给我讲讲这其中的区别吧
我是在vc6下编译的