CHAPTER 2
Hello Friends ..Today we will begin with chapter 2 of C++.In this chapter I will tell you that What are header files and What is the structure of C++ Code:
HEADER FILES
In the last chapter we discussed about IOSTREAM.H and CONIO.H.Now what are they? These are the header files. Header files can be defined as the external files that contains reference of different inbuilt functions of C++.All the inbuilt functions are collection of instructions and these functions are defined in header files.
STRUCTURE OF C++ PROGRAM
In this block we use a system function main( ). Note that the main is only function after which we don't use semicolon; . Main is the entry point of the program.The compilation of the program will start from here.
-----Header files----
void main( );
{
CODING OF C++ PROGRAM
}
SOME IMPORTANT TERMS
1. CHARACTER SET :
The valid characters used in c++ program is called character set.
In C++ we can use 256 characters such as Digits(0-9)
Alphabets(A-Z,a-z) and other special symbols.
2.KEYWORDS
These are the special words used in C++ that has special meaning for the compiler.For example: clrscr( ); getch( )
3.IDENTIFIERS
Any user defined word is called an Identifier.It may be variable name,class name and function name.
Hello Friends ..Today we will begin with chapter 2 of C++.In this chapter I will tell you that What are header files and What is the structure of C++ Code:
HEADER FILES
In the last chapter we discussed about IOSTREAM.H and CONIO.H.Now what are they? These are the header files. Header files can be defined as the external files that contains reference of different inbuilt functions of C++.All the inbuilt functions are collection of instructions and these functions are defined in header files.
STRUCTURE OF C++ PROGRAM
In this block we use a system function main( ). Note that the main is only function after which we don't use semicolon; . Main is the entry point of the program.The compilation of the program will start from here.
-----Header files----
void main( );
{
CODING OF C++ PROGRAM
}
SOME IMPORTANT TERMS
1. CHARACTER SET :
The valid characters used in c++ program is called character set.
In C++ we can use 256 characters such as Digits(0-9)
Alphabets(A-Z,a-z) and other special symbols.
2.KEYWORDS
These are the special words used in C++ that has special meaning for the compiler.For example: clrscr( ); getch( )
3.IDENTIFIERS
Any user defined word is called an Identifier.It may be variable name,class name and function name.
0 comments:
Post a Comment