以下程序的输出结果是( )。 #include<iostream> #include<stdlib> using namespace std; void func(char **m) { ++m; cout<<*m<<endl; } main() { static char *a[]={"MORNING","AFTERNOON","EVENING"); char **n; n=a; func(n); system("PAUSE"); return 0; }
A.为空
B.MORNING
C.AFTERNOON
D.EVENING
[单选题]下面程序的输出结果是()。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;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 CSum{int如下程序的输出结果是 #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&a
[单选题]有以下程序:includeincludeusing namespace std;int main(){ chara[] = {'a有以下程序: #include <iostream> #include <strinq> using namespace std; int main() { char a[] = {'a'/'b'/'c'/'d','e','f','g','h','/0'}; int i j; i=sizeof(A) ; j=strlen(A) ;
[单选题]有以下程序:includeincludeusing namespace std; class point{private:double有以下程序: #include<iostream> #include<math> using namespace std; class point { private: double x; double y; public: point(double a,double B) { x=a; y=b; } friend double distance (point a
[单选题]以下程序输出结果是():includeusing namespace std;void add(int X,int y,int *z){*z以下程序输出结果是( ): #include<iostream> using namespace std; void add(int X,int y,int *z) { *z=y+x; } int main() { int a,b,c; add(8,4,&a); add(6,a,&b); add(a,b,&c); cout<<a<<
[单选题]有如下程序:#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
[单选题]( 26 )有如下程序#include#includeusing namespace std;int main( ){cout<<SETPRECISION(3)<<FIXED<<SETFILL('*')<<SETW(8);cout<<12.345<<___________<<34.567;return 0;}若程序的输出是:**12.345**34.567则程序中下划线处遗漏的操作符是A. ) setprec