调用函数
#include<stdio.h>int m(int a)
{
s=3*a*a;
return s;
}
int n(int a)
{
l=2*3*a;
return l;
}
int main()
{
int r;
int m(int);
int n(int);
scanf("%d",&r);
printf("%d%d",m(int r),n(int r));
}
Compiling...
0727.c
C:\Users\Administrator\Desktop\C语言编程\课后练习题\0727.c(20) : error C2065: 's' : undeclared identifier
C:\Users\Administrator\Desktop\C语言编程\课后练习题\0727.c(26) : error C2065: 'l' : undeclared identifier
C:\Users\Administrator\Desktop\C语言编程\课后练习题\0727.c(36) : error C2143: syntax error : missing ')' before 'type'
C:\Users\Administrator\Desktop\C语言编程\课后练习题\0727.c(36) : error C2198: 'm' : too few actual parameters
执行 cl.exe 时出错.