Visual Studio (1) 썸네일형 리스트형 [C/C++] OPP의 개요 - Project #include using namespace std; class Cal{ public: int ad, su, mu, di; public: void init(); double add(double, double); double sub(double, double); double mul(double, double); double div(double, double); void showCount(); }; void Cal::init() { ad=0; su=0; mu=0; di=0; } int main() { char op; double a, b; Cal c; c.init(); while(1) { printf("Select operator\n[ + - * / Q ]\n==> "); cin>>op; switch(op).. 이전 1 다음