如下程序的输出结果是 #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
[单选题]如下程序的输出结果是includeincludeusing namespace std;class XCD{char*如下程序的输出结果是 #include<lostream> #include<cstring> using namespace std; class XCD{ char*a; int b; public: XCD(char*aa,int bB) { a=new char[strlen(aA) +1]; strcpy(a,aA) ; b=bb; } char*Geta( ){ret
[单选题]下面程序的输出结果是()。includeincludeusing namespace std;class point{p下面程序的输出结果是( )。 #include<iostream> #include<math.h> using namespace std; class point { private: double x; double y; public: point(double a,double b) { x=a; y=b; } friend double distances(poin
[单选题]下面程序的输出结果是()。includeincludeusing namespace std;void main(){c下面程序的输出结果是( )。 #include<iostream> #include<string> using namespace std; void main(){ charp1[10],p2[10]; strcpy(p1,"abc"); strcpy(p2,"ABC"); charstr[50]="xyz"; strcpy(str+2,strcat(p1,p2
[单选题]以下程序的输出结果是()。includeincludeusing namespace std;void func(cha以下程序的输出结果是( )。 #include<iostream> #include<stdlib> using namespace std; void func(char **m) { ++m; cout<<*m<<endl; } main() { static char *a[]={"MORNING","AFTERNOON","EVENING"); char *
[主观题]如下程序的输出结果是______。 include using namespace std; class pumpkin{ publ如下程序的输出结果是______。include<iostream>using namespace std;class pumpkin{public:pumpkin( ){++count;}~pumpkin( ){--eount;}static void total_count( ){cout<<count<<"pumpkin(s)"<<endl;}privat
[主观题]如下程序的输出结果是______。 include using namespace std; class Wages{£¯£¯“工资”如下程序的输出结果是______。include<iostream>using namespace std;class Wages{ //“工资”类double base; //基本工资double bonus; //奖金double tax; //税金public:Wages(double CBase,double CBonus,doable CTax):bas
[主观题]如下程序的输出结果是______。 include using namespace std; int funl(int x){retu如下程序的输出结果是______。include<iostream>using namespace std;int funl(int x){return++x;}int fun2(int&x){return++x;}int main( ){int x:1,y=2;Y=funl(fun2(x));cout<<x<<','<<y;return 0;}
[主观题]如下程序的输出结果是______。 include using namespace std; class Pet{ char nam如下程序的输出结果是______。include<iostream>using namespace std;class Pet{char name[10];public:Pet(char*nanle){strcpy(this->name,name);}const char*getName( )const{return name;}virtual void call(
[单选题]有如下程序:#include#includeusing namespace std;int main(){cout.fill('*');cout<return 0;}执行这个程序的输出结果是A. . 123*OKB. . 123*OK**C. . *123OKD. . *123**OK
[单选题]( 27 )有如下程序#include#includeusing namespace std;class MyClass{public:MyClass( ){ cout<<'A'; }MyClass(char c){ cout<~MyClass( ){ cout<<'B'; }};int main( ){MyClass p1,*p2;p2=new MyClass('X');delete p2 ;return 0;}执行这个程序屏幕上将显示输出A. ) A