标签:
#include "stdio.h"
#include "iostream"
void main02(){
int max(const int &x,const int &y);
int x,y;
std::cin>>x>>y;
int v=max(x,y);
std::cout<<"较大数为:"<<v<<std::endl;
}
int max(const int&x,const int&y){
//x=7;//由于const修饰所以x值不可改
return (x>y)?x:y;
}
标签:
原文地址:http://www.cnblogs.com/wangshuile/p/5595494.html