Welcome to Scribd. Sign in or start your free trial to enjoy unlimited e-books, audiobooks & documents.Find out more
Standard view
Full view
of .
Look up keyword or section
Like this
0 of .
Results for:
No results containing your search query
P. 1


|Views: 746|Likes:
Published by xblueknight
Here is a C++ presentation for all Ietians .It has C++ programs.
Here is a C++ presentation for all Ietians .It has C++ programs.

More info:

Published by: xblueknight on Mar 23, 2009
Copyright:Attribution Non-commercial


Read on Scribd mobile: iPhone, iPad and Android.
download as PPT, PDF, TXT or read online from Scribd
See more
See less





#include<iostream.h>//CLASS DEMONSTRATION#include<iostream.h>//CLASS DEMONSTRATIONclass itemclass item{ int number;{ int number;float cost;float cost;public:public:void getdata( int a, float b)void getdata( int a, float b)void putdata(void)void putdata(void){ cout<<“number :”<<number<<“\n”;{ cout<<“number :”<<number<<“\n”;cout<<“cost :”<<cost<<“\n”;cout<<“cost :”<<cost<<“\n”;}}};};void item:: getdata( int a, float b)void item:: getdata( int a, float b){ number=a;{ number=a;cost=b;cost=b;
void main( )void main( ){item x;{item x;cout<<“\nobject x “<<“\n”;cout<<“\nobject x “<<“\n”;x.getdata(100,290.5);x.getdata(100,290.5);x. putdata( );x. putdata( );item y;item y;cout<<“\n object y”<<“\n”;cout<<“\n object y”<<“\n”;y.getdata(200,220.78);y.getdata(200,220.78);y.putdata( );y.putdata( );}}object xobject xnumber:100number:100cost: 290.5cost: 290.5object yobject ynumber : 200number : 200cost : 220.78cost : 220.78 
Nesting of Member FunctionsNesting of Member Functions
class Setclass Set
{{int m, n;int m, n;public:public:void input(void);void input(void);void display(void);void display(void);int largest(void);int largest(void);};};int set :: largest(void)int set :: largest(void){ if( m>=n){ if( m>=n)return m;return m;elseelsereturn n;return n;}}

Activity (101)

You've already reviewed this. Edit your review.
1 hundred reads
1 thousand reads
vermuz liked this
sangita phunde liked this
mailtothangs liked this
Vivek Trivedi liked this
manab12 liked this
manab12 liked this
Mohammad Saeed liked this
rkchakervarti liked this

You're Reading a Free Preview

/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->