调试下列程序 写出输出结果 并解释输出结果 #include <iostream> using namespace std; cl

大学网课 已帮助 人

调试下列程序,写出输出结果,并解释输出结果 #include <iostream> using namespace std; class My { public: My(int aa) { A = aa; B -= aa; } static void fun(My m); private: int A; static int B; }; void My::fun(My m) { cout << "A=" << m.A << endl; cout << "B=" << B << endl; }; int My::B = 100; int main() { My P(6), Q(8); My::fun(P); Q.fun(Q); return 0; }

调试下列程序 写出输出结果 并解释输出结果 #include &lt;iostream&gt; using namespace std; cl

热搜:下面程序的功能是输出数组s中最大元素