#include
main()
{
float gz,sum;
scanf("%%f",&gz);
if(gz>1000)
{if(gz<=2000)
sum=(gz-1000)*0.05;
else if(gz<=5000)
sum=(gz-2000)*0.15+50;
else if(gz<=10000)
sum=(gz-5000)*0.20+50+450;
else sum=(gz-10000)*0.4+50+450+1000;
printf("sum:%%f",sum);
}
Unsigned int basic,addon;
printf(“ input the basic and addon:”);
scanf(“%d%d”,&basic,&addon);
printf(“结果为
/*=======个人收入支出管理系统======*/
struct DATA {
int y,m,d;
char brf[250];
long int money1,money2;
char iao;
struct DATA *next;
}data,*head=&data,*final=&data; /*链表节点定义*/
void clear(){
setfillstyle(1,9);
bar(0,0,640,480);
setfillstyle(0,14);
setlinestyle(0,0,2);
rectangle(100,100,540,380);
} /*清屏函数*/
void point(int x,int y){
union REGS in,out;
int86(0x10,&in,&out); /*光标重定位函数,使用了DOS 0x10号中断2号功能*/
int check(int y,int m,int d)
int date[12]={31,28,31,30,31,30,31,31,30,31,30,31};
if(y>0){
if(m>0&&m<13){
if(((y%%4==0&&y%%100!=0)||(y%%400==0))&&d==29) return 1;
if(d>0&&d } } clear();point(10,20); printf("Error!You input the illegal Date!"); point(11,20);printf("Press any key to continue!"); return 0;} /*日期检查函数*/int check2(int y,int m,int d,int *y1,int *m1,int *d1)
clear();point(10,20);
printf("Error!You input the illegal Date!");
point(11,20);printf("Press any key to continue!");
return 0;
} /*日期检查函数*/
int check2(int y,int m,int d,int *y1,int *m1,int *d1)