Hey cplusplus
I am 100% new to programming, only been doing it for a few weeks just for fun.
I am currently trying to follow this tutorial:
http://cplusplus.com/doc/tutorial/program_structure/ and it doesnt work for me.
Ive followed it before and made a successfull program, but now when i do it it doesnt work.
Im using Code Blocks to compile with.
This is copy pasted from the tutorial but still doesnt work for me:
#include <iostream>
using namespace std;
int main ()
{
cout << "Hello World!";
return 0;
}
C:\Users\Nicholas\Desktop\c++ Projekt\First c++ project.c|3|error: iostream: No such file or directory|
C:\Users\Nicholas\Desktop\c++ Projekt\First c++ project.c|4|error: expected '=', ',', ';', 'asm' or '__attribute__' before 'namespace'|
C:\Users\Nicholas\Desktop\c++ Projekt\First c++ project.c||In function 'main':|
C:\Users\Nicholas\Desktop\c++ Projekt\First c++ project.c|8|error: 'cout' undeclared (first use in this function)|
C:\Users\Nicholas\Desktop\c++ Projekt\First c++ project.c|8|error: (Each undeclared identifier is reported only once|
C:\Users\Nicholas\Desktop\c++ Projekt\First c++ project.c|8|error: for each function it appears in.)|
||=== Build finished: 5 errors, 0 warnings ===|
---------
Anyone got any idea whats going wrong? Since ive done it before but im on another computer and wanna try to keep going.
Help is appreciated
//Nic