⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 curr5.cpp

📁 data structures, algorithms and Application书的源代码
💻 CPP
字号:
// test currency class

#include <iostream.h>
#include "curr5.h"

void main(void)
{
   Currency g, h(plus, 3, 50), i, j;
   g.Set(minus, 2, 25);
   i.Set(-6.45);
   j = h + g;
   cout << j << endl;
   i += h;
   cout << i << endl;
   j = i + g + h;
   cout << j << endl;
   j = (i+=g) + h;
   cout << j << endl;
   cout << i << endl;
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -