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
Backtracking_simple
Counting top students
queueLinkedlist
带头结点的单链表
can be zero
replace_copy-30-Seconds-of-C++
shuffle_example
SOS DP
156
Kth smallest element