To answer one of your questions, you are probabbly confused because there is std::cout instead of just cout. That is because cout is in the standard library. If you add the line "using namespace std;" under #include <iostream> you could just have cout.

==========================================
If you want it to pause, there is many ways to do so. You could include conio.h to your program and use getch(); before return 0 this would make the program stop untill a key is pressed. Or you could use cin.ignore(); which will not continue untill enter is pressed. Now with your prob with system pause..

1. You need to create a project even though it is just one source file. (it is still a project)

2. Forget what that FAQ said create a Console Application.

3. Make sure you have included: #include <stdlib.h>

Now you should be able to compile with no problems. I believe Dev-C++ actually starts out with the code:

system("PAUSE"); will work, but I wouldn't recommend it. There are better options.

The best option is to execute it from a command prompt rather than the Run button of your compiler. This is true of all console applications. You may also find an option somewhere to keep consoles open after execution has finished. Visual C++ has this option somewhere, and I suspect C++ Builder does as well. Don't know about the package you're using.

The second best option is to ask for input in your program. A call to system(char*) isn't actually a request for input. It's a request to run an outside program, one that happens to block on input. To actually ask for input, you would be better served to add the following code:

Hi. I got the same book and I am enthusiastic about programming.
Last year I learnt TrueBasic but now Im learning C++.
I need help with getting DOS to pause. None of the things above work.
If someone could show me an example of a program or tell me how to configure DOS I would be very apreacitive.
Thanks.

Using a project in Dev-C++ is still a good idea even if you are using a single sourcefile. This is because the project templates set up the appropriate compiler/linker options to cirrectly build the typr of app you select. Also, the options are contained with the project. If you do not use a project and switch the global options for say a Windows GUI app, then reload the console app, the incorrect options will be applied. Using a project prevents this, because it has separate project options.

And finally the console app project template has a sample main() that works!