给出以下程序的输出结果。
#include <iostream>
using namespace std;

class test
{
private:
    int x, y;

public:
    void f(int a, int b) { x = a; y = b; }
    int max() { return (x > y) ? x : y; }
};

int main()
{
    test a;
    a.f(1, 3);
    cout << a.max() << endl;
}

未知 题库 2024-12-07 1210
相关推荐

评论列表
友情链接
关闭

用微信“扫一扫”