There are two ways you can compile programs: 1) Using compiler. It depends on what system u use, but i recommend gcc (for window you can use MinGW). After installing it you use it by typing into console : g++ THEDIRECTORYOFAFILETOCOMPILE But thats the metod i do not recommend. First of all - it not comfortable, cause everytime you have to open cmd and type down directory. Second thing is, that you cant merge files into project. 2) Using IDE. IDE is Integrated Development Environment. Whats that ? Its program that is an text editor (which also underline your mistake in syntax etc) with built-in compilers. I recommend you CodeBlock. Its absolutely free, and it for both Window and Linux. In CodeBlocks you do following thing : go into propertie and choose compiler (there is no huge difference as youre going to write simple program at the beginning), then file->create new c++ file. Then you write your program, press F9 wait about 2 seconds and it automatically compiles it and runs it. What will be even more useful in IDE for your learning i that shows all error, and you will be able to easily create project, which you include classes, more than one source file and all other stuff you cant do with compiler (or what is not comfortable to do with compiler)
Here there is codeblocks: http://www.codeblock.org/
And what i would recommend you, is buying a book. Learning programming from site or pdf is not a good idea, it WAY easier when you have a book.
|