User forums > Using Code::Blocks
How do I, in a project, call main.c something else and have it still run?
Jenna:
Or create an empty project and create any files you want with "File -> New".
C::B asks you whether to add it to the project in this case.
Note: you need to type the file-ending also.
papagym:
Yarly,
If you have C programs you want to use in C++ all you have to do is copy the C programs data into the buffer and paste it into a new file into the code::blocks editor. Remember your just copying and pasting the contents of the file, not it's name.
C::B has a few way to start a new file or project look at the others replies here to help you.
You can use New>Empty File or open a new project.
Of course when you go to compile the program with C::B you have to give it a name. You may use any name you want , just remember to add the .cpp extension to it.
If the programs don't compile the syntax my need some slight changes to work with C++.
If your still having problem you need to supply more details
Navigation
[0] Message Index
[*] Previous page
Go to full version