curr3.cpp
来自「数据结构c++语言描述 Borland C++实现」· C++ 代码 · 共 28 行
CPP
28 行
// test currency class
#include <iostream.h>
#include "curr3.h"
void main(void)
{
Currency g, h, i, j;
cin >> g;
cin >> h;
i = g - h;
cout << g << " minus " << h << " = "
<< (g - h) << endl;
cout << "10% of " << g << " = "
<< (g % 10) << endl;
cout << "3 times " << g << " = "
<< (g * 3) << endl;
cout << "Half of " << g << " = "
<< (g / 2) << endl;
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?