C++ beginner Question
I've had some java before where i used eclipse as a compiler.now im learning some c++ using codeblocks.
Just a quick question:
* in java i was used to make 1 projectfile then a could have as many source files i wanted in that project.Like when im going through examples in a book i just simply made new source code for that example.I didnt need to make a new project for every example in the book.
*But as i se it in c++ i have to make a new project everytime or put the new example codes in a class and then call the from the class?
Have i understood this correct?
You don't need any projects, but compiling from command line is annoying for a beginner. In code blocks, you must have a project to compile something.
I think i works the same way as in java. You can add a new class to the project or make a new class in the same file you were just working on. You dont need to make a new project for every new code you are making.
Originally Posted by zyberb
If you want to try out and compile a new source file without creating a new project you can just create the new file, remove the old file from the project and then adding the new file to the project. This way the old file will not be linked and you can get it anytime you want.
Thank you all:D
i found out it,just needed to switch my mind over to c++ and get used to Code Blocks Compiler.
Now for trying out and compiling small codes i just new File->C++ Source-->next-->next->and just choose my workspace as path.
At first a was making new projects all the time:(