C++ First Example

 



It is time to type our first C++ program. This program is going to prompt a line of
text that says "Hello World!". This program has no input and no process but only
output which says "Hello world!".



 #include <iostream>

using namespace std;


int main() //the only function in this program.

{

cout <<"------------------------------- \n\n\n\n";

cout <<"Hello world! \n";

cout <<"********************************* \n";

cout <<"This is my C++ program."<<endl<<endl<<endl<<endl;


system("pause");

return 0;

}

Comments

Popular posts from this blog

JSS1 COMPUTER STUDIES FINAL EXAM QUESTIONS

JSS3 COMPUTER STUDIES PAPER III PRACTICAL