Like This Site? 
 
RSS Feed Follow Us 

on Twitter! Be Our Fan!

How To Create custom .h files and add them to a project : C/C++

Share this post!
 Vote this!

Creating a Project in C/C++
Using various filetypes:
.h .cpp

This is a little IDE specific but I'll make it as general as possible.

This is quite specific, but it can be generalised. Basically, when you create a new project, you should already have a .cpp file added to it, since this is where the main loop goes. This file is often called main.cpp

Now, to add a new file, most IDEs will require you to go to File>New. You should then see an option called something like "Header file." If not, then it is most likely File>New>file...

Now, make sure that it is a .h file that you are creating, give it a name, and click next/OK. Follow the wizard until you are returned to the coding view, and you should now be working in a header file more...

0 comments:

Post a Comment