计算个税(定义一个薪水类)
摘要:
(起征点800):#include <iostream>
using namespace std; #define TAX_THRESHOLD 800 struct Tax { double standard; double tax_rate;
}; class Salary { double income;
public: static Tax tax_array[]; Salary(int m = 0) { income = m; } void operator - (int payout) { income -= payout; cout << "工资余 阅读全文
posted @ 2012-04-24 19:39 c语言源码 阅读(304) 评论(0) 推荐(0) 编辑