c++入门02
#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;
}
浙公网安备 33010602011771号