I tried the first code in the c++ tutorial but after building it it says "fatalerror: iostream: no such file or directory". Please help me. i really want to program other stuff quickly.
cheers.
The error is clear: the iostream header file, which is part of standard library, is not in any of the directories that the compiler is looking from. Being standard heaser, it should be included as part of the compiler installation. Either the installation or configuration has errors (or the compiler version is too old to include that header).
check you mingw installation or any other compiler supported by code::blocks, and make sure code::blocks knows where ther are, you can google that, its as easy as 1+x=0.
1. Make sure the name of the file ends with the extension .cpp , not .c
The compiler usually auto detects whether to use a c or c++ compiler depending on the file type. Since you are writing C++ code, you need a C++ compiler, therefore name the file "something.cpp".