Top Banner
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
96

Object Oriented Programming Constructors and Destructors

Oct 03, 2015

Download

Documents

Object Oriented Programming Constructors and Destructors Programmes
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript

Chapter 3

Chapter 3Example 1 :

#include

void main( )

{

int a;

a = 50;

a = 100 ;

cout