有如下程序: #include <iostream> #include <iomanip> using namespace std; class CSum {int x,y; public: CSum(int x0,int y0):x(x0),y(y0) {} friend ostream& operator<<(ostream & os, const CSum& xa) { os<<setw(5)<<xa.x+xa.y; return os; } int main() { CSum y(3,5); cout<<setfill('*')<<8; cout<<y; return 0; }执行上面程序的输出是______。
A.88
B.****88
C.****8****8
D.8****8
[单选题]有如下程序 include include using namespace std; int main(有如下程序 #include<iostream> #include<iomanip> using namespace std; int main(){ cout<<setprecision(3)<<fixed<<setfill('*')<<setw(8); cout<<12.345<<_______<<34.567; return 0; } 若程序的输出是: ** 12.345**34.5
[单选题]有如下程序:include include using namespace std;class CSum{int x,y有如下程序: #include <iostream.h> #include <iomanip.h> using namespace std; class CSum { int x,y; public: CSum (int x0,int y0):x(x0),y(y0){} friend ostream & operator<<(ostream& os,const
[单选题]有如下程序: include include using namespace std; int main(){ cout<
[单选题]有如下程序include include using namespace std;class MyClass {public:M有如下程序#include <iostream>#include <iomanip>using namespace std; class MyClass {public:MyClass(){ cout<<'A'; }MyClass(char c){ cout<<c; }~MyClass(){ cout<<'B'; }};int main() {MyClass p
[单选题]有如下程序include include using namespace std;int main( ){cout<
[单选题]有如下的程序:include include using namespace std;class MyString{p有如下的程序: #include <cstring.h> #include <iostream.h> using namespace std; class MyString { public: MyString(const char*s); ~MyString () {delete [] data;} protected: unsigned len; char*data; };
[单选题]有如下的程序;include include using namespace std;class MyString{public有如下的程序; #include <ctring> #include <iostream> using namespace std; class MyString { public: MyString(const char *s); ~MyString() {delete[]data;} protected: unsigned len; char *data; }; M
[单选题]有如下程序:include using namespace std;using namespace std;class Base{public:vo有如下程序: #include <iostream> using namespace std; using namespace std; class Base{ public: void fun( ){cout<<"Base::fun"<<endl:} }; class Derived:public Base{ public: void fun(
[单选题]有如下程序: #include(iostream) using namespace std; class TestClass{ protected: TestClass(){couti(cout<<‘x’;} TestClass(char c){cout<<c;}}; class TestClassl:publicTestClass{ public: TestClassl(char c){cout<<c;}}; int main(){ TeA.yB.yxC.xyD.yy
[单选题]有如下程序: qnclude include using namespace std;有如下程序: #qnclude<iostream> #include<iomanip> using namespace std; class CSum { int x,y; public: CSum(int x0,int y0):x(xo),y(yo){} friend ostream& operator<<(ostream&os,const CSum&xa) { os<<setw(5)