CodeBus
www.codebus.net
Search
Sign in
Sign up
Hot Search :
Source
embeded
web
remote control
p2p
game
More...
Location :
Home
Search - iostream m
Main Category
SourceCode
Documents
Books
WEB Code
Develop Tools
Other resource
Sub Category
Button control
ComboBox
EditBox
TreeView
Static control
PropertySheet
RichEdit
ListView/ListBox
Menu control
ToolBar
StatusBar
Dialog_Window
Other
Tab Control
Search - iostream m - List
[
Other
]
c++123
DL : 0
#include<iostream> using namespace std class ABC { private: double i,j public: ABC(int x,int y):i(x),j(y) {} ABC() {} double add() { return i+j } double jian() { return i-j } double cheng() { return i*j } double div() { return i/j } } void main() { int m,n char op cout<<\"input\" cin>>m>>op>>n ABC a(m,n) switch(op) { case + :cout<<a.add() break case - :cout<<a.jian() break case * :cout<<a.cheng() break case / :cout<<a.div() break default:cout<<\"error\" } cout<<endl } -# include
Date
: 2008-10-13
Size
: 548byte
User
:
飞鹰
CodeBus
is one of the largest source code repositories on the Internet!
Contact us :
1999-2046
CodeBus
All Rights Reserved.