News:

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

Main Menu

Why does "Hello World" populate every new project cpp

Started by VicM, December 12, 2021, 06:50:05 PM

Previous topic - Next topic

VicM

Hi,
I'm using C::B 20.03 on a 64-bit Win 7 box.
Every time I create a new project and open the source .cpp, it's populated with the "Hello World" source code.  I would like every project source code to start with basic code, such as:

#include <iostream>

using namespace std;

int main()
{

    return 0;
}


How can I achieve that? 

Thanks,
Vic

Miguel Gimenez

#1
You can use User templates or edit share\CodeBlocks\templates\console-main-cpp.cpp, but deleting one line from every new project does not look too hard, even if you create dozens of projects.

VicM

Thanks for your response Miguel.
While you have a point, it's just that my eyes glaze over when I see "Hello World".  LOL
Vic