刚学C++;有个疑问
#include <iostream.h>int Add(int first, int second)
{
std::cout << "In Add(),recieved " << first << "and " << second << "\n";
return (first+second);
}
int main()
{
using std::cout;
using std::cin;
count << "I'm in main()!\n";
int a, b, c;
cout << "Enter two numbers: ";
cin >> a;
cin >> b;
cout << "\nCalling Add();\n";
c=Add(a,b);
cout << "\nBack in main().\n";
cout << "c was set to " << c;
cout << "\nExiting...\n\n";
getchar();
return 0;
}
为什么在VC 6.0老是说 error C2653: 'std' : is not a class or namespace name
我照着例题输的。。。
用Dev-C++又可以