--------------------Configuration: 2 - Win32 Debug--------------------
Compiling...
main.cpp
d:\koleya\intro\section\2\main.cpp(5) : error C2065: 'cout' : undeclared identifier
d:\koleya\intro\section\2\main.cpp(5) : error C2297: '%26lt;%26lt;' : illegal, right operand has type 'char [80]'
d:\koleya\intro\section\2\main.cpp(7) : error C2297: '%26lt;%26lt;' : illegal, right operand has type 'char [37]'
d:\koleya\intro\section\2\main.cpp(9) : error C2065: 'cin' : undeclared identifier
d:\koleya\intro\section\2\main.cpp(9) : warning C4552: '%26gt;%26gt;' : operator has no effect; expected operator with side-effect
d:\koleya\intro\section\2\main.cpp(11) : error C2297: '%26lt;%26lt;' : illegal, right operand has type 'char [38]'
d:\koleya\intro\section\2\main.cpp(13) : warning C4552: '%26gt;%26gt;' : operator has no effect; expected operator with side-effect
d:\koleya\intro\section\2\main.cpp(15) : error C2297: '%26lt;%26lt;' : illegal, right operand has type 'char [37]'
I cannot correct these errors... could someone help?
Visual C++ question?
Have you check if you included iostream? I have not programed in Visual C++ for a long time. But the look of your error, cout definition is not seen by the compiler. So probably there is a probably including iostream.h
Reply:maybe
#include %26lt;iostream%26gt;
and /or
using namespace std;
is missing.
Reply:Try:
#include %26lt;iostream%26gt;
and
std::cout %26lt;%26lt; ...
instead of
cout %26lt;%26lt; ...
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment