这代码在哪声明了自定义函数?
#include <stdio.h>int main(){ int a,b,s; printf("please input a:\n"); scanf("%d",&a); printf("please input b:\n"); scanf("%d",&b); s=max(a,b); printf("the max number is %d\n",s); getch();}int max(int x ,int y) /*定义一个函数。*/{ if(x>y) /*如果x大于y就返回x。*/ { return(x); } else /*否则就返回y。*/ { return(y); }}test.c(10) : warning C4013: “max”未定义;假设外部返回 int //看这行test.c(12) : warning C4013: “getch”未定义;假设外部返回 intMicrosoft (R) Incremental Linker Version 10.00.40219.01Copyright (C) Microsoft Corporation. All rights reserved.