有如下程序#include <iostream>#include <iomanip>using namespace std; class MyClass {public:MyClass(){ cout<<'A'; }MyClass(char c){ cout<<c; }~MyClass(){ cout<<'B'; }};int main() {MyClass p1,*p2;p2=new MyClass('X');delete p2;return 0;}执行这个程序屏幕上将显示输出( )。
A.ABX
B.ABXB
C.AXB
D.AXBB
[单选题]有如下程序include include using namespace std;int main( ){cout<
[单选题]有如下程序 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 CSum{int x,y;pub有如下程序: #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
[单选题]有如下的程序: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;int s=0;class sample { static int n;publ有如下程序: #include <iostream> using namespace std; int s=0; class sample { static int n; public: sample(int i) { n=i; } static void add() { s+=n; } };A.2B.5C.7D.3
[单选题]有如下程序: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(
[单选题]有如下程序: 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)