I am new to the c++ programming language and I need help.

So I have created the program in the extension .cpp ,but how can I run it, its just text! Is their anyway I could run it as a program from command line or an executable file?

Plz help.
Thanks to those who spent time in reding this.

Recommended Answers

All 3 Replies

its just text!

Yes, yes it is. C++ is a compiled language, which means you need a compiler and linker to turn that text into executable machine code. The easiest way to get started is with an IDE. You'll be able to create projects and build them with the click of a button. Two good IDEs are Code::Blocks and Visual C++ 2010 Express.

If you are using a mac, I suggest downloading the free Developer package and then compiling the code in the Terminal. The Developer package includes other compilers that you might be interested in, such as Perl.

Thanks for the help! Both answers have been helpful due to the fact that I have Windows XP and Mac OS X!

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.