I recently started to learn C ++ and, based on the Ruby environment, it was very difficult for me to structure the project so that it still compiles correctly, I use Code :: Blocks, which is brilliant, but the disadvantage is that when I add new header file or C ++ source file, it generates some code, and although it is only 3 or 4 lines, I do not know what these lines do. First of all, I would like to ask this question:
What do these lines do?
#ifndef TEXTGAME_H_INCLUDED #define TEXTGAME_H_INCLUDED #endif
My second question is: I need to #include both the .h file and the .cpp file and in what order.
My third question is: where can I find the GNU GCC compiler, which I believe was packaged using Code :: Blocks and how to use it without Code :: Blocks? I would rather develop in notepad ++, because this is what I'm used to in Ruby, but since C ++ is compiled, you can think differently (please give advice and opinions on this)
Thanks in advance, ell.
EDIT: I am on Windows XP and thank you for quickly covering the answers!
source share