您的位置:首页 > 其它

第二周

2014-03-14 11:40 204 查看
// gjghjn.cpp : Defines the entry point for the console application.

//

#include "stdafx.h"

#include <iostream>  

using namespace std; 

 

int max(int x, int y)



    int t; 

    if(x>y)

        t=x; 

    else  

        t=y; 

    return t;  



int main() 

{  

    int number1,number2;

    cout<<"请输入两个字:"; 

    cin>>number1>>number2;               

    int maxValue=max(number1,number2);   

    cout<<"最大值="<<maxValue<<endl;

    return 0; 

 

内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: