单项选择题

有如下程序: #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"); cout<

A.111
B.132
C.232
D.233
题目列表

你可能感兴趣的试题

微信扫码免费搜题