c语言 求绝对值 程序哪错了?#include int main(void){double a,abstr(double a);printf("enter areal number please");scanf ("%lf",&a);printf ("abstr(%lf)=%lf\n",a,abstr(a));return 0;}错误信息Cpp1.obj : error LNK2001: unresolved external symb

来源:学生作业帮助网 编辑:六六作业网 时间:2024/12/24 09:01:24
c语言求绝对值程序哪错了?#includeintmain(void){doublea,abstr(doublea);printf("enterarealnumberplease");scanf("%l

c语言 求绝对值 程序哪错了?#include int main(void){double a,abstr(double a);printf("enter areal number please");scanf ("%lf",&a);printf ("abstr(%lf)=%lf\n",a,abstr(a));return 0;}错误信息Cpp1.obj : error LNK2001: unresolved external symb
c语言 求绝对值 程序哪错了?
#include
int main(void)
{double a,abstr(double a);
printf("enter areal number please");
scanf ("%lf",&a);
printf ("abstr(%lf)=%lf\n",a,abstr(a));
return 0;}
错误信息Cpp1.obj : error LNK2001: unresolved external symbol "double __cdecl abstr(double)" (?abstr@@YANN@Z)
Debug/Cpp1.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.
Cpp1.exe - 2 error(s), 0 warning(s)

c语言 求绝对值 程序哪错了?#include int main(void){double a,abstr(double a);printf("enter areal number please");scanf ("%lf",&a);printf ("abstr(%lf)=%lf\n",a,abstr(a));return 0;}错误信息Cpp1.obj : error LNK2001: unresolved external symb
#include
#include
int main(void)
{double a;
printf("enter areal number please");
scanf ("%lf",&a);
printf ("abstr(%lf)=%lf\n",a,fabs(a)); //求绝对值用 fabs();要包含 math.h头文件
return 0;}