Code::Blocks Forums

User forums => General (but related to Code::Blocks) => Topic started by: kinddavid on July 29, 2015, 07:07:22 am

Title: Multiple files
Post 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?
Title: Re: Multiple files
Post by: oBFusCATed on July 29, 2015, 09:51:24 am
What? Project?
Title: Re: Multiple files
Post by: MortenMacFly on July 29, 2015, 10:55:12 am
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.
Title: Re: Multiple files
Post by: kinddavid on July 31, 2015, 09:46:54 am
When I create a project I have one .cpp . How do I add another or add a .h?
Title: Re: Multiple files
Post by: scarphin on July 31, 2015, 10:48:14 am
menu 'project->add files'?
Title: Re: Multiple files
Post by: kinddavid on August 01, 2015, 06:39:21 am
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.
Title: Re: Multiple files
Post by: oBFusCATed on August 01, 2015, 08:28:23 am
File -> New -> Empty file
File -> New -> File...
Title: Re: Multiple files
Post by: marcelinux on August 01, 2015, 02:22:32 pm
If you have a .cpp file, by pressing F11, C::B switch to .h file or ask you for create one.
Title: Re: Multiple files
Post by: papagym on September 11, 2015, 09:25:52 pm
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.