Hot Search : Source embeded web remote control p2p game More...
Location : Home Search - iostream m
Search - iostream m - List
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.