Here is my code it work in my other IDE BUT NOT IN VISUAL why THE PRECOMPILE HEADER IS TURN OFF. EVEN WITH TURN ON IT DIDN'T WORK
2006-10-30
13:20:04
·
2 answers
·
asked by
Best Helper
4
in
Computers & Internet
➔ Programming & Design
#include
int main()
{
int a;
int my;
my = 15;
cout << "What do u think My age is?: ";
cin >> a;
if(a == my)
{
cout << "U have Guessed Right.. YEA!";
cout << endl << "Congradulation";
}
else
{
if(a < my)
{
cout << "GO HIGHER" << endl;
}
else
{
cout << "TOO HIGH..Go LOWER" << endl;
}
}
main();
return 0;
}
2006-10-30
13:20:31 ·
update #1
1>------ Build started: Project: 2_if_1_else, Configuration: Debug Win32 ------
1>Compiling...
1>2_if_1_else.cpp
1>c:\documents and settings\gagandeep\my documents\visual studio 2005\projects\2_if_1_else\2_if_1_else\2_if_1_else.cpp(10) : error C2065: 'cout' : undeclared identifier
1>c:\documents and settings\gagandeep\my documents\visual studio 2005\projects\2_if_1_else\2_if_1_else\2_if_1_else.cpp(11) : error C2065: 'cin' : undeclared identifier
1>c:\documents and settings\gagandeep\my documents\visual studio 2005\projects\2_if_1_else\2_if_1_else\2_if_1_else.cpp(16) : error C2065: 'endl' : undeclared identifier
1>Build log was saved at "file://c:\Documents and Settings\Gagandeep\My Documents\Visual Studio 2005\Projects\2_if_1_else\2_if_1_else\Debug\BuildLog.htm"
1>2_if_1_else - 3 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
2006-10-30
13:20:43 ·
update #2
thanks for the help the 1 person
I got this error when I build it MSVCP80D.dll
not found do i have to reinstall it.
2006-10-30
14:00:20 ·
update #3