程设小组作业——计算机配件的进货/销售管理系统

sale_stastics_modify.h 目前资金统计函数(修改后更新数据用)

///////////////////////////////////////////////
/*
资金修改函数 :用于修改记录后目前资金的更新
*/
void sale_stastics_modify(float stastics_changed,int type){
switch(type){
case 1:
current_funds-=stastics_changed;
current_welfle-=stastics_changed;
break;
case 2:
current_funds+=stastics_changed;
current_welfle+=stastics_changed;
break;
case 3:
current_funds+=stastics_changed;
current_welfle+=stastics_changed;
}
}

点赞

发表评论