Below is a simple C++ program I tried on to compile on my
PC ruinning NT4.0 Server Can anyone tell me why it wont compile?
Thanks
#include <iostream>
using namespace std;
void main()
{
char myname[40];
cout << "Enter your name:";
cin >> myname;
cout << endl << "Hellow world C++" << myname << endl;
}
----Configuration: HelloWorld - Win32 Debug------------
Compiling...
Hello.cpp
g:\msdn\include\xlocinfo(26) : error C2065: 'free' : undeclared identifier
Error executing cl.exe.
HelloWorld.exe - 1 error(s), 0 warning(s)
PC ruinning NT4.0 Server Can anyone tell me why it wont compile?
Thanks
#include <iostream>
using namespace std;
void main()
{
char myname[40];
cout << "Enter your name:";
cin >> myname;
cout << endl << "Hellow world C++" << myname << endl;
}
----Configuration: HelloWorld - Win32 Debug------------
Compiling...
Hello.cpp
g:\msdn\include\xlocinfo(26) : error C2065: 'free' : undeclared identifier
Error executing cl.exe.
HelloWorld.exe - 1 error(s), 0 warning(s)