K12教育赛事综合服务平台
聚乐之家官方网站
下载聚乐之家官方App
专注青少年竞赛题库网站
#include <iostream> using namespace std; void func(int a, int& b) { a++; b++; cout << a << "," << b << endl; } int main() { int x = 1, y = 2; func(x, y); cout << x << "," << y << endl; return 0; }
2,3 和 1,2
2,3 和 1,3
1,2 和 1,3
2,2 和 1,3