96
Chapter 3 Example 1 : #include<iostream.h> void main( ) { int a; a = 50; a = 100 ; cout<<"\n a = "<<a ; } Example 2: Program to illustrates processing of an Array #include<iostream.h> #include<conio.h> void main( ) { double A[3]; // Array Declaration // Stores Data in Array clrscr(); A[2] = 22.22; A[0] = 11.11; A[1] = 33.33; //Read Data from an Array cout << " A[0] = "<<A[0]<<endl; cout << " A[1] = "<<A[1]<<endl; cout << " A[2] = "<<A[2]<<endl; getch( ); } Example 3: Program to illustrates processing of an Array

Object Oriented Programming Constructors and Destructors

Embed Size (px)

DESCRIPTION

Object Oriented Programming Constructors and Destructors Programmes

Citation preview

Chapter 3

Chapter 3Example 1 :

#include

void main( )

{

int a;

a = 50;

a = 100 ;

cout