User forums > Using Code::Blocks
Changing Pre-Written Code
(1/1)
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.
Navigation
[0] Message Index
Go to full version