How to create .h and .cpp files in codeblock to define program sub-files

1. Open codeblock and create a new C++ project (File-->New-->Project-->File-->C/C++)

 

 2. Click File-->class under the newly created file directory to get the following interface, and customize a name

 

 3. Click create to create,

 

 4. Click OK, and you will get the new .h and .cpp files, and store the content to be divided into blocks separately

The only thing to note here is that the library functions under the sub-file must use "" instead of <>

Pay attention to Xiaoguan and take you out of the pit!

I hope I can help everyone, I ask you if you want a like, will you give it, thank you all.
Copyright statement: The copyright of this article belongs to the author (@攻城狮小关) and CSDN. Welcome to reprint, but you must keep this paragraph without the author’s consent Statement, and provide the original link in an obvious place on the article page, otherwise the right to pursue legal responsibility is reserved.
It is not easy for everyone to write articles, please respect the fruits of labor~ 
Communication plus Q: 1909561302
Blog Park Address https://www.cnblogs.com/guanguan-com/

Guess you like

Origin blog.csdn.net/Mumaren6/article/details/108558205