高手来帮帮忙。。。程序出错了。似乎是子函数·
#include <stdio.h>
#define inch_cm 2.54
double I_C(double inch)
{
double cm;
cm=inch*inch_cm;
return cm;
}
printf_star_inch()
{
printf("*****************************************\n");
printf("* *\n");
printf("* please input ______ inch *\n");
printf("* *\n");
printf("*****************************************\n");
printf_end_inch()
{
printf("*****************************************\n");
printf("* %.2lf inch = %.2lf cm *\n",inch,cm );
printf("*****************************************\n");
main()
{
double inch,cm;
clrscr();
printf_star_inch();
scanf("%lf",&inch);
cm=I_C(inch);
clrscr();
printf_end_inch();
}
有两个错误。麻烦高手们·请告诉小弟 哪儿错了。。。原因。。。以及解决方法·