#include
using namespace std;
class A{
int a
public:
A.():a(9){}
virtual void print() const {cout<};
class B:public A{
char b;
public:
B.(){b= ‘S’;}
void print()const{cout<};
void show(Aa&X){X,print()}
int main()
{ Ad1;*p;
B.d2;
p=&d2;
d1,print();
d2,print();
p->print();
show(d1);
show(d2);
return 0;}
[单选题]下列程序的输出结果是()。 include include main() {char a[]="/n123//"; p下列程序的输出结果是( )。#include<stdio.h>#include<string.h>main(){ char a[]="/n123//";printf("%d,%d/n",strlen(A) ,sizeof(A) );}A.5,6B.5,5C.6,6D.6,5
[单选题]下列程序的输出结果是______。 include include using namespace std; voi下列程序的输出结果是______。include<iostream.h>include<string.h>using namespace std;void fun(const char*s,char &C) {c=s[strlen(s)/2];}int main(){char str[]="ABCDE";char ch=str[1];fun(str,ch);cout<<
[单选题]下列程序的输出结果是()。 include include main() {char a[]="/n123//";pr下列程序的输出结果是( )。 #include<stdio.h> #include<string.h> main() { char a[]="/n123//"; printf ("%d,%d/n",strlen(a),sizeof(a)); }A.5,6B.5,5C.6,6D.6,5
[单选题]下列程序运行后,输出结果是______。 include include fun(char *w ,int下列程序运行后,输出结果是______。 #include <stdio. h> #include <string. h> fun (char *w ,int n) { char t,*s1,*s2; s1=w; s2=w+n-1; while (s1<s2) { t=*s1++; *s1=*s2--; *s2=t; } } main () { char *p; p="1234567
[单选题]下列程序的输出结果是______。 include main ( ) {int a,b,c=246; a=c£¯100%9; b=(£1)下列程序的输出结果是______。 #include <stdio. h> main ( ) { int a,b,c=246; a=c/100%9; b=(-1)&&(-1); printf ("%d, %d/n", a,b); }A.2,1B.3,2C.4,3D.2,-1
[单选题]下面程序的输出结果是#include#includevoid main(){char p1[10],p2[10];strepy(p1,”abc”):strcpy(p2,”ABC”);char str[50]=”xyz”;strcpy(str+2,strcat(p1,p2));cout <}A.xyzabcABCB.zabcABCC.xyabcABCD.yzabcABC
[单选题]下面程序的输出结果是 ( ) include include { char * p1="abc" , *下面程序的输出结果是 ( ) # include<stdio.h> # include<string.h> { char * p1="abc" , * p2=" ABC ",str[50]="xyz"; strcpy(str+2.strcat (pi,p2)); printf("%s/n",str);}A.xyzabcABB.zabcABCC.yzabcABCD.xyc
[单选题]下列程序的输出结果是()。 include main() {char a[]={'a','b','c','d','e','f','/0'};下列程序的输出结果是( )。#include<stdio.h>main(){ char a[]={'a','b','c','d','e','f','/0'};int i,j;i=sizeof(A) ;j=strlen(A) ;printf("%d,%d",i,j);}A.7,7B.7,6C.6,6D
[单选题]下列程序的输出结果是______。 include using namespace std; class Test( public: Te下列程序的输出结果是______。 #include<iostream> using namespace std; class Test( public: Test() {cnt++;} ~Test() {cnt--;} static int Count(){return cnt;} private: static int cnt; }; int Test::
[单选题]下列程序的输出结果是( )。 include using namespace std; int main() {下列程序的输出结果是( )。 #include<iostream> using namespace std; int main() { char a[]="Hello,Test"; char *p=a; while(*p) { if(*p>='a'&&*p<='z') cout<<char(*p+'A'-'a'); else cout<<*p; p+