Create a C/C project called "ToyProgramProject" (read previous section on how to create a project).We could use this feature to write many toy programs under one project. ![]() The removed files are not deleted and remain in the folder. You need to create one project for each toy program.Ĭodeblock, nonetheless, allow you to add files or remove files from a project. ![]() That is, you cannot keep two toy programs (each having a main() function) in one project (you will get the error "multiple definition of 'main'" when you try to build the project). Writing Many Toy Programs under ONE ProjectĪlthough a project may contain many source files, there can only be one main() function among all the source files. cbp", where ".cbp" stands for CodeBlocks-Project.
0 Comments
Leave a Reply. |