c语言初学者,求解答,万分感激!

#include "cstdio"
int main()
{
int a,b,c,d;
scanf("%d%d%d",&a,&b,&c);
d=a;
if(b>a)
d=b;
if(c>b)
d=c;
printf("%d",d);
return 0;
}
上边的程序为何能运行但没有结果,而把上边程序的d换成其他字母如s却可以?

不看头文件程序没问题

第一句改为:

#include "stdio.h"

#include "cstdio"改为#include "stdio.h"

%d是输出整形,数字,比如1,2,3
你赋值的是 a ,b ,c,这个是字符型的。所以要输出 %s

我在电脑上运行了一次,没发现有问题啊