C++ and C Introduction


Step 1:
Opening the c++ document
Code
Code

#include <iostream.h>
int main()
{


This starts off the file with a header to do input and ouptut, and also start the body.
Step 3: output
Code
Code

cout << "Hello World.";


This will output hello world to the console!

Code
Code

system(pause);


You would want that to show press any key to continue
Step 4: close
Code
Code

return 0;
}

this closes it.

Now to compile it, goto build and then make an exe, then run it. Depends on the program you use to complie it.

Sorry if there is any spelling mistakes.
Joshua's Avatar
Author:
Views:
1,154
Rating:
There are currently no comments for this tutorial, login or register to leave one.