7 views

Uploaded by sakharam_gawade

save

- EXP3_3
- EXP4_2
- EXP4_3
- EXP3_4
- exp1_2(OOP)
- EXP5_1
- EXP5_2
- EXP4_4
- exp1_3(OOP)
- EXP5_3
- EXP3_2
- EXP4_1
- EXP3_1
- exp1_4(OOP)
- EXP5_5
- exp13
- EXP12
- Exp 10
- EXP7_2
- EXP6_1
- EXP7_4
- EXP8_2
- EXP11
- EXP7_3
- EXP8_1
- EXP7_1
- EXP6_3
- EXP8_3
- exp13
- dt manual (10)
- EXP12
- About Blank
- Exp 10
- dt manual (6)
- dt manual (13)
- Aritificial Intelligence EXP1
- EXP11
- dt manual (8)
- dt manual (9)
- dt manual (14)
- dt manual (7)
- dt manual (11)
- dt manual (12)
- dt manual (5)
- dt manual (2)
- OOP ch1 (3)
- OOP ch1 (10)
- dt manual (3)
- OOP ch1 (8)
- OOP ch1 (4)
- dt manual (4)
- OOP ch1 (5)
- OOP ch1 (6)
- OOP ch1 (12)
- dt manual (1)
- OOP ch1 (7)
- OOP ch1 (11)
- OOP ch1 (9)

You are on page 1of 1

h> class ty; class sy { public: int var1; void getdata() { cin>>var1; } void putdata() { cout<<endl<<var1; } friend void xchng(sy&,ty&); }; class ty { public: int var2; void getdata() { cin>>var2; } void putdata() { cout<<endl<<var2; } friend void xchng(sy&,ty&); }; void xchg(sy&s,ty&t) { int temp; temp=s.var1; s.var1=t.var2; t.var2=temp; } void main() { clrscr(); sy s1; ty t1; cout<<"Enter any two numbers:\n"; s1.getdata(); t1.getdata(); xchg(s1,t1); cout<<"Values after swapping:\n"; s1.putdata(); t1.putdata(); getch(); }

Page 1

Print to PDF without this message by purchasing novaPDF (http://www.novapdf.com/)

- EXP3_3Uploaded bysakharam_gawade
- EXP4_2Uploaded bysakharam_gawade
- EXP4_3Uploaded bysakharam_gawade
- EXP3_4Uploaded bysakharam_gawade
- exp1_2(OOP)Uploaded bysakharam_gawade
- EXP5_1Uploaded bysakharam_gawade
- EXP5_2Uploaded bysakharam_gawade
- EXP4_4Uploaded bysakharam_gawade
- exp1_3(OOP)Uploaded bysakharam_gawade
- EXP5_3Uploaded bysakharam_gawade
- EXP3_2Uploaded bysakharam_gawade
- EXP4_1Uploaded bysakharam_gawade
- EXP3_1Uploaded bysakharam_gawade
- exp1_4(OOP)Uploaded bysakharam_gawade
- EXP5_5Uploaded bysakharam_gawade
- exp13Uploaded bysakharam_gawade
- EXP12Uploaded bysakharam_gawade
- Exp 10Uploaded bysakharam_gawade
- EXP7_2Uploaded bysakharam_gawade
- EXP6_1Uploaded bysakharam_gawade
- EXP7_4Uploaded bysakharam_gawade
- EXP8_2Uploaded bysakharam_gawade
- EXP11Uploaded bysakharam_gawade
- EXP7_3Uploaded bysakharam_gawade
- EXP8_1Uploaded bysakharam_gawade
- EXP7_1Uploaded bysakharam_gawade
- EXP6_3Uploaded bysakharam_gawade
- EXP8_3Uploaded bysakharam_gawade

- exp13Uploaded bysakharam_gawade
- dt manual (10)Uploaded bysakharam_gawade
- EXP12Uploaded bysakharam_gawade
- About BlankUploaded bysakharam_gawade
- Exp 10Uploaded bysakharam_gawade
- dt manual (6)Uploaded bysakharam_gawade
- dt manual (13)Uploaded bysakharam_gawade
- Aritificial Intelligence EXP1Uploaded bysakharam_gawade
- EXP11Uploaded bysakharam_gawade
- dt manual (8)Uploaded bysakharam_gawade
- dt manual (9)Uploaded bysakharam_gawade
- dt manual (14)Uploaded bysakharam_gawade
- dt manual (7)Uploaded bysakharam_gawade
- dt manual (11)Uploaded bysakharam_gawade
- dt manual (12)Uploaded bysakharam_gawade
- dt manual (5)Uploaded bysakharam_gawade
- dt manual (2)Uploaded bysakharam_gawade
- OOP ch1 (3)Uploaded bysakharam_gawade
- OOP ch1 (10)Uploaded bysakharam_gawade
- dt manual (3)Uploaded bysakharam_gawade
- OOP ch1 (8)Uploaded bysakharam_gawade
- OOP ch1 (4)Uploaded bysakharam_gawade
- dt manual (4)Uploaded bysakharam_gawade
- OOP ch1 (5)Uploaded bysakharam_gawade
- OOP ch1 (6)Uploaded bysakharam_gawade
- OOP ch1 (12)Uploaded bysakharam_gawade
- dt manual (1)Uploaded bysakharam_gawade
- OOP ch1 (7)Uploaded bysakharam_gawade
- OOP ch1 (11)Uploaded bysakharam_gawade
- OOP ch1 (9)Uploaded bysakharam_gawade