Creation of codeblocks project (including header files, links to source files)

First we open our computer software codeblocks and find codeblocks from thousands of compilers (I am a compiler collector)

Enter codeblocks 

Click->File->project 

              After entering the project, the following interface will appear, click Console application                             

Then select the language of the file you want to create here and click next

Then name your project, and then save it to the disk location you want to save it. After completion, click next ->Click finish         

Open Sources and you will find that you have successfully created a c++ source file.                

Continue to click File->new->file

 

Here we first create the corresponding header file

 

 

 

Click... to select the location where your header file is stored (remember it must be together with the project you created earlier) and then click Save

After saving, return to this interface, then click Finish

       At this point we can see that Headers and Sources are under the same project (test) (if not, it will fail)

Then you need to create multiple source files and header files in the same way as creating this header file (just note that the file is saved in the project you created before)

Guess you like

Origin blog.csdn.net/weixin_46713492/article/details/123591369