I have been learning simple codes from readoing "Complete idiot's Guide to C++" All my codes work in MiniGW Developers (IDE). I said why not learn to do it in visual 2005 express as well so I put in the code and it does work.Here's my code just simple.
#include
main(){
int a;
for(a = -10; a < 10;a++){
cout << a << endl;
}
return 0;
}
2006-10-27
17:38:12
·
3 answers
·
asked by
Best Helper
4
in
Computers & Internet
➔ Programming & Design
The code didn't work in visual but work in the other one (MGW IDE)
2006-10-27
17:47:53 ·
update #1
1>------ Build started: Project: new, Configuration: Debug Win32 ------
1>Compiling...
1>new.cpp
1>c:\documents and settings\gagandeep\my documents\visual studio 2005\projects\new\new\new.cpp(13) : fatal error C1010: unexpected end of file while looking for precompiled header. Did you forget to add '#include "stdafx.h"' to your source?
1>Build log was saved at "file://c:\Documents and Settings\Gagandeep\My Documents\Visual Studio 2005\Projects\new\new\Debug\BuildLog.htm"
1>new - 1 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
it still didn't work when u change it
2006-10-27
17:50:37 ·
update #2