Monday, 12 August 2013

What Is The Basic Structure Of C++ ???

  • Documentation Section
    It is also known as Comment statement. Here it is non-executive statement. It is use to tell us that which program you will going to perform and it will increase your read ability.
    The sign "//" use for single comment and "/* Your Content*/" Use for more then one comment
  • Preprocessor Directives Or Compiler Directrives Or C++ Processor
    These are the compiler preprocessor statement. Pre-processor statement are divided into two sections. One is called Link Section And Second is Defination Section


  • Link Section \\#include
  • Defination Section \\ #define PI 3.14



  • Global Declaration Section\\ int a,b; before main void()
    We want to declare some variables in the main program as well as in the function sub program having same name. it is used for whole programe. So , we take common variable declaration above the main program is know as Global variable declaration.

  • Main C++ Program Function Called Void Main()
    Void Main() function or program is the C++ program's main structure in which we process some statement
  • Begning The Programe By Using {
    • Local Declaration Or Local Variable Declarartion ;\\int i;
    • Execuation Part Or Executable Statements; \\cout<< & cin>>
    • End Of The Main Program Using }
    • No comments:

      Post a Comment