I'm going to start doing some programming in C, and there's just a few question I have about it and the IDE:
Can a C++ compiler compile C code? What about the other way around?
What is CMakeLists.txt? It is created with every project.
Whenever I create a project, the IDE will create main.cpp. I want to be using C specifically, so how do I change the file so it compiles to C and is there a way of setting C as the default and not cpp?
If I build/compile main.cpp, it will build [project_name].exe instead of main.exe. Why does it build the project and not main?
Using CLion and the terminal, how do I recompile code rather than just running it?
Thanks.
Aucun commentaire:
Enregistrer un commentaire