题目内容

C语言不允许使用关键字作为变量的名称,但可以使用保留字为变量命名。( )

查看答案
更多问题

程序改错填空5.原程序: #include using namespace std; template class f{ private: T x,y; public: void f1(T a,T b){x=a;y=b;} T max(){retum(x>y)?x:y;} }; int main(){ f a; a.f1(1.5,3.8); cout<

程序改错填空4.原程序: #include using namespace std; class point{ private: float x; public: void f(float a){x=a;} void f(){x=0;} friend float max(point& a,point& b); }; float max(point& a,point& b){ return(a.x>b.x)? a.x:b.x; } int main(){ point a,b; a.f(2.2);b.f(3.3); cout<

程序改错填空3.原程序: #include using namespace std; class f{ private: int x=0,y=0; public: void f1(int a,int b){x=a;y=b;} void get(){cout<

程序改错填空2.原程序: #include using namespace std; class f{ private: int x,y; public: f1(){x=0;y=0;} print(){cout<

答案查题题库