How Do You Create A Simple Program In C++?
Ever wanted to program in C++? Here’s how to make a simple program. From the help of these examples you can make more programs, they only give a outline to you about programming in C++. They describe the structure of a C++ Program. • Get a compiler and/or IDE. Two good choices are GCC, or if your computer is running Windows, Visual Studio Express Edition. A good, simple, easy to use compiler is the Bloodshed Dev-C++ • Some Examples (Copy and Paste this into a text/code editor) A simple program is given by Bjarne Stroustrup (developer of C++) to check your compiler: • Save this as sum.cpp, Don’t confuse there are many other extensions for C++ files, choose any of them (like *.cc, *.cxx, *.c++, *.cp) . HINT : It should say Save as Type: {select “All Files”} • Compile it.