Object Oriented Programming Constructors and Destructors
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
-
Upload
jaikumarguwalani -
Category
Documents
-
view
28 -
download
8
description
Object Oriented Programming Constructors and Destructors Programmes
Transcript of Object Oriented Programming Constructors and Destructors
Chapter 3
Chapter 3Example 1 :
#include
void main( )
{
int a;
a = 50;
a = 100 ;
cout