User forums > Help
Running C++ programs
(1/1)
Manishyam:
Hi, I am new to code blocks. I started using it as a C compiler which worked quite OK. But when I started using C++ programs, it seems to give weird (appears to me) output. Could anyone suggest what should I do to run programs in C++?
Thanks
Jenna:
The most common mistake seems to be to use a c file-extension for c++ files.
Do not use c, but cpp (or cxx) as file-extension.
And of course make sure you have a c++ compiler installed and set up properly.
Navigation
[0] Message Index
Go to full version