Code::Blocks Forums
User forums => General (but related to Code::Blocks) => Topic started by: kinddavid on July 29, 2015, 07:07:22 am
-
Hope to you make .h and .cpp files besides the main.cpp in Code Blocks?
-
What? Project?
-
Hope to you make .h and .cpp files besides the main.cpp in Code Blocks?
What? Project?
...I don't even understand the question to be honest.
-
When I create a project I have one .cpp . How do I add another or add a .h?
-
menu 'project->add files'?
-
Thanks for responding. I am not talking about adding preexisting files. I need a blank .h file. I tried the project->add files. It wants me to add a preexisting file. I know this is a very basic problem, but I am literally not finding how to do this.
-
File -> New -> Empty file
File -> New -> File...
-
If you have a .cpp file, by pressing F11, C::B switch to .h file or ask you for create one.
-
I'm not sure if this will help you with multiple files or not. Your post is not very specific. But there is a site that has great C++ tutorials on the internet. It is called Learning C++. You can search the lesson index there and open the lesson for Multi-files. This site has is geared toward MSVS users but there in also info on using Code::Blocks there too.
If you don't understand the lesson you can find load of questions and answer by scrolling thru the comments at the end of each lesson.