赞题库-背景图
单项选择题

一个运动队有多个队员,一个队员仅属于一个运动队,一个队一般都有一个教练,则实体运动队和队员的联系是

A.一对多
B.一对一
C.多对一
D.多对多
<上一题 目录 下一题>
热门试题

单项选择题有如下程序:#include#include using namespace std;class MyBag{public:MyBag(string br,string cr):brand(br),color(cr) { ++count; }~MyBag() { --count; }static int GetCount() { return count; }private:string brand,color;static int count;};int MyBag::count=0;int main(){MyBag one( CityLife , Gray ),two( Micky , Red );_____________________return 0;}若程序运行时的输出结果为2,则横线处缺失的语句不可能是

A.cout<B.cout<C.cout<D.cout<

单项选择题已知函数f1调用函数f2,若要把这两个函数的定义放在同一个文件中,则

A.若f1定义在f2之后,则f1的原型必须出现在f2的定义之前
B.若f2定义在f1之后,则f2的原型必须出现在f1的定义之前
C.f1必须定义在f2之前
D.f2必须定义在f1之前