int max(int,int);//函数原型(形参名可以没有)int main(){int a=max(45,60);//函数调用cout<return 0;} int max(int a,int b)//函数定义,必须有函数体(即下面的内容){return a>b?a:b;}