13, 10, 4, 7,-2,( )A.-9 B.-12 C.10 D.11 发布时间:2018-01-05 02:44 │ 来源:www.tikuol.com 题型:单项选择题 问题: 13, 10, 4, 7,-2,( )A.-9B.-12C.10D.11
题型:单项选择题 有以下程序: #include <iostream> using namespace std; class Sample private:int n; public:Sample(int i)n=i;void print() cout<<"1:n="<<n<<",";void print() const cout<<"2:n="<<n<<end1; ; int main() Sample a(10);const Sample b(20);a.print();b.print(); 上述程序运行后的输出结果是 【13】 。 查看答案
题型:单项选择题 执行语句:cout<<setfill(‘*’)<<Setw(10)<<setfill(‘#’)<<left<<123<<“OK”<<end后将输出( )。A.123* * * * * * * OKB.123# # # # # # # OKC.123* * * * * * * * OK* * * * * * * *D.123# # # # # # # #OK# # # # # # # # 查看答案