|
马上注册,结交更多好友,享用更多功能^_^
您需要 登录 才可以下载或查看,没有账号?立即注册
x
- #include <stdio.h>
- int max(int a,int b);
- main()
- {
- int x,y,z;
- int max(int a,int b);
- scanf("%d%d",&x,&y);
- z=max(x.y);
- printf("%d",z);
- }
- int max(int a,int b)
- {
- if(a>b)return a;
- else return b;
- }
复制代码 --------------------Configuration: hello - Win32 Debug--------------------
Compiling...
hello.c
C:\Program Files\Microsoft Visual Studio\MyProjects\hello\hello.c(9) : error C2224: left of '.y' must have struct/union type
C:\Program Files\Microsoft Visual Studio\MyProjects\hello\hello.c(9) : error C2198: 'max' : too few actual parameters
Error executing cl.exe.
hello.obj - 2 error(s), 0 warning(s)
|
|