单项选择题
有如下程序: #include<iostream> using namespace std; ...
单项选择题有如下程序: #include<iostream> using namespace std; class Base { protected: in i; public: int j; }; class Derived:public Base { int m; public:int n; }; int main() { Derived d; d.i=0; //[1] d.j=0; //[2] d.m=0; //[3] d.n=0; //[4] retum 0; } 其中主函数中有两个赋值语句有错,这两个借误的赋值语句是
有如下的程序: #include<cstring> #include<iostream> u...
单项选择题有如下的程序: #include<cstring> #include<iostream> using namespace std; class MyString { public: MyString(const char*s); ~MyString(){delete[]data;} Protected: unsigned len; char*data; }; MyString::MyString(const char*s) { len=strlen(s); data=new char[len+1]; strcpy(data,s); } int main() { MyString a("C++Programing"); MyString b(a); return 0; } 在运行上面的程序时出错,出错的原因是
用树形结构表示实体之间联系的模型是()。 A.关系模型 B.网状模型 C.层次模型 D.以上三个都是
单项选择题用树形结构表示实体之间联系的模型是()。
A.关系模型 B.网状模型 C.层次模型 D.以上三个都是