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
Laborator 2 SD
How to make stupid to my friend?
scemo le
AWE
Teatime Snack
Caminho das Pontes
ASHA
Proga1
Subprime Fibonacci Sequence
Conjuntos - Contar caracteres únicos