hello people,
its the very first time im doing programming stuff.And i have done nothing so far.I found a booklet in my bookcase,it's about C++.,ts just the first booklet of a serie.
i use visual c++ 2008 express,i did new>file>C++
i used the same codes as in the booklet,here it is
//File Name: Source1.cpp
//This is my first program.
/*I will just make it write something*/
#include <iostream>
int main()
{
cout << "TEST\n";
return 0;
}
i added the cpp file into a project because it wasnt compiling if i didnt add it.But when i click the compile it gives an error.it says:
'cout' : undeclared identifier
then i added ":" next to the "cout"
i clicked compile it said:
error C2143: syntax error : missing ';' before '<<'
and i added ";" before "<<" but it keeps telling me that.and there were no ":" next to "cout" on the booklet. what am i gonna do?by the way i dont know nothing about programming,i just follow the instructions.and its a very old booklet,cant reach the author.