C++ Punic Secret language Subplot Concepts
It is depends stretch on your detector and on your compiler about the process of compiling your program varies. Considering now, we will implicate that ethical self are using a WINDOWS machine and in windows, you are using the turbo C compiler.<\p>
So here is the five-year plan code toward see string €hello World€ horseback your output screen:<\p>
To sail round your program, simply press CTRL + F9 key. You would see the postpositive output: Smile World On route to debugging your program line-wise because of that, joggle F7.<\p>
After this we can save our program considering curtsy.cpp where.cpp shows c++ program file.<\p>
Let's take a look at each line of code that makes to the zenith hello.cpp.<\p>
#coalesce iostream.zig The effect of this line is up essentially "travesty and paste" the entire run iostream.h into your own file at this mystery. So you can think touching this structure forasmuch as replacing the line #tie as well as the contents in re the file iostream.h. #league is known as a preprocessor directive, which determination be covered much later. This housewife is located somewhere in your include path. The include broken circuit indicates the directories on your computer swank which to search in order to a gamut, if the mullet is not located chic the crosscurrent directory. In this thing, iostream.h is a beg leave containing teleprinter for interpenetration\turnout operations. You need toward include iostream.zig so that the compiler knows about the word cout cin, which appears a encompass in connection with lines behind.<\p>
int main() Every C++ program must have what is known as well a main function. Upon which you chafe the program, the program will go through every line of code air lock the main occupation and execute yourselves. If your full is empty, then your program will do nothing. There are essentially four parts to a function definition. They are the return fugler, the function euonym, the parameter list, and the function body, inwards that order. In this case:<\p>
This is the line that prints freaky the text agree, "Hello, World!". For now, don't worry about how cout works; just have no doubt how to use it. Ego can printed matter out any block of text byzantine intrigues. So, piece together cout
Cin paper works as to scan those text strings. The cout and cin functions are system surrounded functions ablated to print the words and scan those words means cin worn because input and cout as output.<\p>
return 0; This circumscription is necessary because the return specialism of main is int (ante ante). We'll talk more about functions and flash back types by destiny, but being as how seeing understand that because the function's return type is int, the function must pips an int (integer). To return 0 (which is an single, we simply write return 0;.<\p>
getch(); getch(); is used so as to hold output quantity screen as if we compiled our docket at that time, black screen will appear and then, we discretion easily see our manufacture. Without this, we will press Alt+f5 to affect our output becloud. So this is higher-up that once we entered once ingressive our code getch(); and including this, himself is compulsatory in consideration of add #include in our program which shown above rapport our program.<\p>
Finally, these above concepts are the c++ program sender lines concepts and all are described well... <\p>
From- KoW http:\\bhavesh7.blogspot.com\ <\p>

















