?? curr1.cpp
字號:
// test currency class
#include <iostream.h>
#include "curr1.h"
void main(void)
{
Currency g, h, i, j;
g.Input();
h.Input();
i = g.Subtract(h);
g.Output();
cout << " minus ";
h.Output();
cout << " = ";
i.Output();
cout << endl;
cout << "10% of ";
g.Output();
cout << " is ";
g.Percent(10).Output();
cout << endl;
cout << "3 times ";
g.Output();
cout << " is ";
g.Multiply(3).Output();
cout << endl;
cout << "Half of ";
g.Output();
cout << " is ";
g.Divide(2).Output();
cout << endl;
}
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -