C++ Logo
C++二级在线二级在线
首页选择题程序题成为会员帮助其他科目

选择题

73. 有如下程序: #include<iostream> using namespace std; class Point{ public: Point(int xx=0, int yy=0):x(xx), y(yy) { } void SetXY(int xx,int yy) { x=xx; y=yy; } protected: int x, y; }; class Circle:Point{ public: Circle(int r):radius(r) { } void Set(int r, int x, int y) { radius=r; SetXY(x, y); }//① void Print() const { cout<<x<<','<<y<<','<<radius; } //② private: int radius; }; int main(){ Circle c1(5);//③ Circle c2; //④ return 0; } 在标有号码的语句行中存在语法错误的是______。

上一题下一题