问题描述:
[问答]
有如下类的定义:class Constants{public: static double GetPI(void){return 3.14159;}};Constants constants;下列各组语句中,能输出3.14159的是() A.cout<<constants->GetPI();和cout<<Constants:GetPI(); B.cout<<constants.GetPI();和cout<<Constants.GetPI(); C.out<<constants->GetPI();和cout<<Constants->GetPI(); D.cout<<constants.GetPI();和cout<<Constants:GetPI();
参考答案:查看无
答案解析:无
☆收藏
答案解析:无
☆收藏
- 我要回答: 网友(216.73.217.131)
- 热门题目: 1.环比是指与历史同时期进行比较 2.1932年4月15日,中华苏 3.英国人G?凯利于1847年设
