Author Topic: Running C++ programs  (Read 3564 times)

Manishyam

  • Guest
Running C++ programs
« on: February 18, 2011, 05:55:20 am »
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

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7252
Re: Running C++ programs
« Reply #1 on: February 18, 2011, 06:44:26 am »
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.