News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

Changing Pre-Written Code

Started by Sucho, January 31, 2013, 06:45:27 PM

Previous topic - Next topic

Sucho

I just started using Code::Blocks and i'm loving it. But whenever I start a new project in C++(I use GCC compiler), In the main.cpp somes codes are already pre-writte. which is a "hello world" program with globally declared namespace std. It's a little annoying to change it everytime. So, can anyone tell me how to remove the written code and get an empty main.cpp?

Jenna

Just do not create a console-project with the wizard.
You can use an empty project and add whatever files you need.

Create an empty file with "File -> New" and be aware that you have to type the (correct) file-ending, even if you chose to create a c or c++ or header file.