Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: papagym on July 01, 2016, 04:20:11 pm

Title: Header File help needed
Post by: papagym on July 01, 2016, 04:20:11 pm
I'm new to CB 16.01, C++ and I have some code that I want to make a simple header file with.  Do I need to use any special main menus (file category) to do this?
I tried using a New Empty File and the Editor but the file name gets a suffix added to it when I save it. I want add.h but it comes out add.h.c or add.h.cpp.

There has to be a simple way to do this,  I just need some help.

How do I go about doing this?
Title: Re: Header File help needed
Post by: BlueHazzard on July 01, 2016, 04:51:28 pm
File->New->Empty File->Yes-> Enter "Add.h" in the name field -> save
Title: Re: Header File help needed
Post by: papagym on July 01, 2016, 05:08:02 pm
Thanks BlueHazzard that worked.
I have no idea why it didn't work before.
Can you please make this as solved for me. I have no idea if you can do that on this forum.