有以下程序: #include<iostream> using namespace std; class R { public: R(int r1,int r2) { R1=rl; R2=r2; } void print(); void print()const; private: int R1,R2; }; void R::print() { cout<<R1<<","<<R2<<end1; } void R::print() const { cot<<R1<<","<<R2<<end1; } int main() { Ra(5,4); const R b(20,52); b.print(); return 0; } 执行后的输出结果是
免费的网站请分享给朋友吧