ClaSSes

The C++ programming language allows programmers to separate program-specific datatypes through the use of classes. Classes define types of data structures and the functions that operate on those data structures. Instances of these datatypes are known as objects and can contain member variables, constants, member functions, and overloaded operators defined by the programmer. Syntactically, classes are extensions of the C struct, which cannot contain functions or overloaded operators.


outside the class.



ArraY


1) In data storage, an array is a method for storing information on multiple devices.
 2) In general, an array is a number of items arranged in some specified way - for example, in a list or in a three-dimensional table.
3) In computer programming languages, an array is a group of objects with the same attributes that can be addressed individually, using such techniques as subscripting.
4) In random access memory (RAM), an array is the arrangement of memory cells.
Array Video.


FuNctioNs oVerLOadIng.

function overloading: In  functions overloading function is always same but, we can change data type or parameters .friends don't puzzle what is function and which function is change see below example sum is a function and the name of program is function overloading.
// this is called comment lines it never effect the program. 


example:


  1. void sum(int a,int b);                                            //function=sum(this bracket no meaning)                                                                                                                                                               
  2. void sum(int a,int b,float c);




In this example i never change the function sum but,

FuNctioNs.

Functions are very useful in c++ because it is used for re-usability of code this means we write a statement at once then we call that statement number of times and from this way we never write whole code again and again. function are work with three statements.
  • function declaration 
  • function calling
  • fuction definition


syntax of function declaration:
datatype function(parameters);


consider example for function declaration.
void sum(int a,int b);


syntax of function calling:
function(parameters without datatype);


example:
sum(a,b);


syntax function definition:
datatype function(parameters)
{
statement;
}

ciRcUmFereNce oF ciRcLe























For understanding c++ try to compare every program with your daily routine .In this program i want to find circumference of circle so first its must to know what is the formula of circumference of circle then try to apply logic according to above showing manner.

AdDitiOn iN c++























In this above program i want to add two numbers so automatically a logic come in our mind two numbers are add like:- 2+3,5+2..............and so on.

Wel cOme In C++ aNd BaSic deFiniTionS.

some basic about c++ which are used in coming lectures.
#include<iostream.h>


this above is the header file of c++ in which # is called preprocessor  #include showing it only take  standard input  having standard output .


iostream.h:
 input/output stream(sequence of  data in bytes) so iostream stands input data having standard input and output and the input output data inserting and extracting in sequence. extension always used .h in c++.