问题描述:
fabs(t)>le
# include <stdio.h># include <math.h>void main(){ int s; float n,t,pi; t=1; pi=0; s=1; n=1.0; while(fabs(t)>le-6) { pi=pi+t; n=n+2; s=-s; t=s/n; } pi=pi*4; printf("%f",pi); getch();}用WIN -TC编译结果是 错误 未定义的符号'le'在 main 函数中 为什么?哪里错了?
# include <stdio.h># include <math.h>void main(){ int s; float n,t,pi; t=1; pi=0; s=1; n=1.0; while(fabs(t)>le-6) { pi=pi+t; n=n+2; s=-s; t=s/n; } pi=pi*4; printf("%f",pi); getch();}用WIN -TC编译结果是 错误 未定义的符号'le'在 main 函数中 为什么?哪里错了?
问题解答:
我来补答展开全文阅读