程序出错怎么办
有谁能告诉我这几个程序怎么在TC中运行不出来我不知道错误怎么改第一个:
#include "stdio.h"
main()
{int h , m
printf("enter:\n");
scanf("%d,d%",&h,&m);
h=560/60;
m=560%60;
printf("%d,%d"h,m);}
第二个:
#include "stdio.h"
main()
{int a,b
printf("enter x&y:\n");
scanf("%d,%d",&x,&y);
printf("a=%d,b=%d\n",a,b);
a=x/y;b=x%y;
printf("%d,%d",a,b);}
第三个:
#include "stdio.h"
main()
{double x,y,z,m
printf("enterx,y,&z");
scanf("%lf,%lf,%lf",&x,&y,&z);
printf("m=%d\n",m);
m=m*10;
m=m+0.5;
m=(int)m;
m=m/10;
printf("%f\n",m);}
第四个:
#include "stdio.h"
main()
{int z,b,c,t
printf("enter a,b,&c:\n");
scanf("%d,%d,%d",&a,&b,&c);
printf("a=%d,b=%d,c=%d\n",a,b,c);
t=a;b=t;c=b;a=c;
printf("%d,%d,%d"a,b,c);}
[此贴子已经被作者于2006-2-2 17:39:56编辑过]