函数的定义与调用

#include<iostream>
#include<cstdio>
#include<string>

#pragma warning(disable : 4996)

 

using namespace std;

int Max(int x, int y);

int main() {
    int n = Max(4, 6);
    cout << n << "," << Max(20, n) << endl;

    
    return 0;

}

int    Max(int x,int y) {
    return (x>y?x:y);
}

posted @ 2022-02-15 09:45  江南王小帅  阅读(42)  评论(0)    收藏  举报