Structure Of C++ Program:-
Now I am explaining you about Structure Of C++ Program. If you have Structure Of C++ Program in your mind then it is very easy to write any program in C++ Programming Language.So have a smart look at the same.
#include<iostream.h>
#include<conio.h>
void main()
{
clrscr();
Statement(s) To Be Executed;
getch();
}
#include:- It is known as Preprocessor Directive. It is used to tell the Compiler that which statement will be executed first.
In this program the Header File iostream will be included by the compiler , so that the compiler will understand , the standard input output related predefined syntax or statements.
iostream:- It is referred as input output stream since it contains the definition of input output related statements. It is a header file .
.h:- It is the Extension of header file.
In Computer , Extension is used to tell the computer that ‘which type of file it is ? ‘ Or ‘this file is of which software ‘ , so that we can open file in that specific Software. If there is no extension with file name then we can not open that file if we don’t have that file related software installed in our computer.
You Also Can See More Result By Using Google Search.
conio:- It is a header file , referred as Console input output . Here console represents Monitor /Display Screen . In this file , all the console related input output functions are defined like clrscr() and getch().
main():- It is Built-In Function that is used to contain the body of C++ Program. Program execution starts from this function and ends in this function.
{ :- It is Opening Brace , that tells the compiler that a block of statements is started.
}:- It is Closing Brace , that tells the compiler that a block of statements is closed.
clrscr():- It is a Built-In Function , that is used to clear the screen before getting the output of a program.
getch():-It is referred as get character. It is a Built-In Function , that is used to get output of a program , directly after running it.
;:- It is a symbol of Semicolon.In C++ Programming Language it works as a Terminator. When the working of any Statement is finished in language then , to tell the same to Compiler we use this sign.
Statement:- It is Command or group of commands that can do some operation.
Example,
If I want to declare any Variable then following is a Variable Declaration Statement.
int a;
Here ‘int’ is a DataType and ‘a’ is a Variable.
I know you will like this post very much.After getting it in your mind please tell me, how it was? Like this post I will provide all stuff like Computer Science , Mathematics , Technology , Meditation etc.
You Also Can Play Online Quiz by following Link,
You Also Can Ask and Give Answer of Questions by following Link,
If you have any requirements to know more about it in detail, then this content may be helpful to you.
You Also Can Visit For More Knowledge In C++:-
Visit Your YouTube Channel:- Think , About It
Visit Your Website :- www.atozlives.com
Thanks,
“Play With All Computer Science , Mathematics And Technology.”
Good structure of C++ thanks sir for your post
Very nice structure of c++
F*ckin?amazing things here. I抦 very glad to see your post. Thanks a lot and i’m looking forward to contact you. Will you kindly drop me a e-mail?
Thank you for your sharing. I am worried that I lack creative ideas. It is your article that makes me full of hope. Thank you. But, I have a question, can you help me?
Thank you for your sharing. I am worried that I lack creative ideas. It is your article that makes me full of hope. Thank you. But, I have a question, can you help me?
pwJLmYnW
Your article helped me a lot, is there any more related content? Thanks!
Your article helped me a lot, is there any more related content? Thanks!