|
|
#2
纯蓝之刃2019-11-09 14:01
|
#include <stdio.h>
#define float double
void PRINT(double s)
{
FILE *out;
printf("s=%.5lf\n",s);
if((out=fopen("result.dat","w+"))!=NULL)
{
fprintf(out,"s=%.5lf",s);
fclose(out);
}
}
void main()
{
/*考生在此设计程序*/
PRINT(s);
}
程序代码: