摘要:
阅读全文
posted @ 2017-11-16 14:12
TOTO2
阅读(150)
评论(0)
推荐(0)
摘要:
#include using namespace std; int max(int x ,int y,int z); int main() { int a,b,c,m; cout>a>>b>>c; m=max(a,b,c);//实际参数 ,代表具体数值,在()当中 coutx) x=z; if(y>x) x=y; ... 阅读全文
posted @ 2017-11-16 14:11
TOTO2
阅读(132)
评论(0)
推荐(0)
摘要:
#include using namespace std; template 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>a>>b>>c; m=max(a,b,c); cou... 阅读全文
posted @ 2017-11-16 14:10
TOTO2
阅读(141)
评论(0)
推荐(0)
摘要:
#include using namespace std; int max(int x,int y,int z=0); int main() { int a,b,c,m; cout>a>>b; m=max(a,b); cout>a>>b>>c; m=max(a,b,c); coutx) x=z; if(y... 阅读全文
posted @ 2017-11-16 14:09
TOTO2
阅读(328)
评论(0)
推荐(0)

浙公网安备 33010602011771号