joey o.
Sep 19th, 2000, 12:45 PM
OK,
I wish there was a smiley that had tears! Can someone help me? I give up. I've installed and uninstalled VC++6 and MSDN 3 times so far and still I can't run this c++ code on my WinNT machine in work. It works at home (Win98) but gives me these errors on the following code:
Here's the code:
#include <iostream>
int main(void)
{
cout << "Does this work?"
<< endl << endl;
return 0;
}
Here's the errors:
--------------------Configuration: NewOne - Win32 Debug--------------------
Compiling...
Cpp1.cpp
D:\Apps\Microsoft Visual Studio\MyProjects\NewOne\Cpp1.cpp(5) : error C2065: 'cout' : undeclared identifier
D:\Apps\Microsoft Visual Studio\MyProjects\NewOne\Cpp1.cpp(5) : error C2297: '<<' : illegal, right operand has type 'char [16]'
D:\Apps\Microsoft Visual Studio\MyProjects\NewOne\Cpp1.cpp(6) : error C2143: syntax error : missing ';' before '<<'
Error executing cl.exe.
NewOne.exe - 3 error(s), 0 warning(s)
I wish there was a smiley that had tears! Can someone help me? I give up. I've installed and uninstalled VC++6 and MSDN 3 times so far and still I can't run this c++ code on my WinNT machine in work. It works at home (Win98) but gives me these errors on the following code:
Here's the code:
#include <iostream>
int main(void)
{
cout << "Does this work?"
<< endl << endl;
return 0;
}
Here's the errors:
--------------------Configuration: NewOne - Win32 Debug--------------------
Compiling...
Cpp1.cpp
D:\Apps\Microsoft Visual Studio\MyProjects\NewOne\Cpp1.cpp(5) : error C2065: 'cout' : undeclared identifier
D:\Apps\Microsoft Visual Studio\MyProjects\NewOne\Cpp1.cpp(5) : error C2297: '<<' : illegal, right operand has type 'char [16]'
D:\Apps\Microsoft Visual Studio\MyProjects\NewOne\Cpp1.cpp(6) : error C2143: syntax error : missing ';' before '<<'
Error executing cl.exe.
NewOne.exe - 3 error(s), 0 warning(s)