User forums > Using Code::Blocks

Header File help needed

(1/1)

papagym:
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?

BlueHazzard:
File->New->Empty File->Yes-> Enter "Add.h" in the name field -> save

papagym:
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.

Navigation

[0] Message Index

Go to full version