Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Float
//g++ 5.4.0 #include<iostream.h> #include<conio.h> Class FLOAT { Float a; Public: FLOAT () { Cout<<" enter the float number"; Cin>>a; } void operator+(FLOAT x) { Cout<<"\n addition of two numbers"<<a+x.a; } Void operator-(FLOAT x) { Cout<<"\n subtraction of two numbers"<<a-x.a; } Void operator*(FLOAT x) { Cout<<"\n multiplication of two numbers"<<a*x.a; } Void operator/(FLOAT x) { Cout<<"\n division of two numbers"<<a/x.a; } }; Void main() { Clrscr (); FLOAT F1,F2; F1+F2; F1-F2; F1*F2; F1/F2; getch(); }
run
|
edit
|
history
|
help
0
basic caculate ii
fb_series
1234
asa
GRAPH DFS & BFS
341 30 - B
Graph Theory
Segmented Sieve
FindMissingBinom
Radix