Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: Sucho on January 31, 2013, 06:45:27 pm

Title: Changing Pre-Written Code
Post by: Sucho on January 31, 2013, 06:45:27 pm
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?
Title: Re: Changing Pre-Written Code
Post by: Jenna on January 31, 2013, 06:54:11 pm
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.