Author Topic: Changing Pre-Written Code  (Read 3984 times)

Offline Sucho

  • Single posting newcomer
  • *
  • Posts: 2
Changing Pre-Written Code
« 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?

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7255
Re: Changing Pre-Written Code
« Reply #1 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.