Structure of a program

Posted on at


Structure of a program

// my first programS in C++
#include <iostream>
using namespace std;
int main ()
{
cout << "I am ready for first programe to learn from tutorial man.i feel it easy and i will enjoy all program!";
return 0;
}

OUTPUT
I am ready for first programe to learn from tutorial man.i feel it easy and i will enjoy all program!

DESCRIPTION
The first panel shows the source codes for our first program. The second one shows the result of the program onces compiled and executed. The ways to edit and compiles a program depends on the compiler you are using.

Depending on whether it has a Developments Interfaces or not and on its versions. Consult the compilers section and the manuals or help included with your compiler if you have doubt on how to compiles a C++ console programs.
The previous program is the typical program that programmer apprentice write for the first time, and its result is the printing on screens of the "I am ready for first programe to learn from tutorial man.i feel it easy and i will enjoy all program!" sentence. It is one of the simplest programs that can be written in
C++, but it already contains the fundamental components that every C++ program has. We are going to look lines by lines at the codes we have just written in next lecture of Shahbaz's Tutorial:

 



About the author

160