有以下程序: #include<iostream> usingnamespacestd; classR {public: R(intr1,intr2) {R1=r1; R2=r2;} voidprint(); voidprint()const; private: intR1,R2;}; voidR::print() {cout<<R1<<","<<R2<<endl;} voidR::print()const {cout<<R1<<","<<R2<<endl;} intmain() {Ra(5,4); constRb(20,52); print(); return0;} 执行后的输出结果是( )。
免费的网站请分享给朋友吧