Example of a simple program: #include <iostream.h> void main() { cout <<"Hello"; //This is a comment } Going through this line by line: #include <iostream.h> This will include the header file iostream.h that contains the information for writing out text (cout), reading in, and many other things.
dotcomma: Simple C++ Tutorial, Part 1
By
Get the Free Newsletter!
Subscribe to Developer Insider for top news, trends, & analysis