摘要:
#include <iostream> using namespace std; int max(int x,int y,int z=0); int main(){ int a,b,c,m; cout<<"请你输入两个整型的数字:"<<endl; cin>>a>>b; m=max(a,b); cou 阅读全文
posted @ 2017-11-09 21:47
羿龙
阅读(288)
评论(0)
推荐(0)
摘要:
#include <iostream> using namespace std; template<typename T> T max(T x ,T y,T z){ if(z>x) x=z; if(y>x) x=y; return x; } int main(){ int a,b,c,m; cout 阅读全文
posted @ 2017-11-09 21:45
羿龙
阅读(133)
评论(0)
推荐(0)
摘要:
#include <iostream> using namespace std; int max(int x ,int y,int z); double max(double x ,double y,double z); long max(long x ,long y,long z); int ma 阅读全文
posted @ 2017-11-09 21:43
羿龙
阅读(127)
评论(0)
推荐(0)
摘要:
#include <iostream> using namespace std; int max(int x ,int y,int z); int main(){ int a,b,c,m; cout<<"请你输入三个整型的数字:"<<endl; cin>>a>>b>>c; m=max(a,b,c); 阅读全文
posted @ 2017-11-09 21:39
羿龙
阅读(88)
评论(0)
推荐(0)

浙公网安备 33010602011771号