— Whose umbrella is it
— It's ______.

A:somebody else's B:somebody else C:somebody's else's D:somebody's else

有下列程序,程序运行后单击命令按钮,则输出的结果是( )。

Private Sub Command1_Click( )

Dim a%(1 To 4),b%(3 To 6),i%,s1#,s2#

For i=1 To 4

a(i)=i

Next i

For i=3 To 6

b(i)=i

Next i

s1=Factorial(

A:

s2=Factorial(
B:

Print"s1=";s1;"s2=";s2

 

有以下程序:
#include
void fun(char*t,char*s)
while(*t!=0)t++;
while((*t++=*s++)!=0);

main( )
char ss[10]=”acc”,aa[10]=”bbxxyy”;
fun(ss,a

A:;printf"%s,%s",ss,aa);

若有以下程序,当程序运行后,单击命令按钮,则输出的结果为( )。
Private Sub Command1_Click( )
Dim a%(1 To 4), b%(3 To 6), i%, s1#, s2#
For i= 1 To 4
a(i) = i
Next i
For i=3 To 6
b(i) = i
Next i
s1 = Factorial (

A:
s2 = Factorial (
B:
Print "s1="; s1; "s2="; s2
End Sub
Function Factorial(a() As Integer)
Dim t#, i%
t=1
For i = LBoun
C:s1=24 s2=24 D:s1=360 s2=360

有下列程序,程序运行后单击命令按钮,则输出的结果为( )。
Private Sub Command1_Click( )
Dim a%(1 To 4), b%(3 To 6), i%, s1#, s2#
For i= 1 To 4
a(i) = i
Next i
For i=3 To 6
b(i)=i
Next i
s1=Factorial (

A:
s2=Factorial (
B:
Print "s1="; s1; "s2="; s2
End Sub

有下列程序:
#include<iosteram.h>
using namespace std;
class Stack

public:
Stack(unsignedn=10):size(n)rep_=new int [size];top=O;
Stack(Stack&s):size(s.size)

rep_=new int[size];
for(int i=0;i<size;i++)
rep_[i]=s.rep_[i];
top=s.top;

~Stack( )<delete[]rep_;
void push(int

A:rep_[top]=a;top++;
intpop()--top;return rep_[top];
bool isEmpty()const return top==0;
private:
int*rep_;
unsigned size,top;
;
int main()

Stack s1;
for(int i=1;i<5;i++)
s1.push(i);
Stack s2(s1);
for(int i=1;i<3;i++)
cout<<s2.pop()<<’,’;
s2.push(6);
s1.push(7);
while(!s2.isEmpty())
cout<<s2.pop()<<’,’;
return 0;

执行上面程序的输出结果是( )。A) 4,3,2,1,
B:4,3,6,7,2,1, C:4,3,6,2,1, D:1,2,3,4,

有以下程序
#include <stdio.h>
voidfun(char*t,char*s)
while(*t!=0) t++;
while((*t++=*s++)!=0);

main( )
char ss[10]="acc",aa[10]="bbxxyy";
fun(ss,a

A:; printf("%s,%s",ss,aa);

&n

有以下程序:
#include<stdio.h>
void fun(char*t,char*s)
while(*t!=0)t++;
while((*t++=*s++)!=0);
main( )
char ss[10]="acc",aa[10]="bbxxyy";
fun(ss,a

A:;printf("%s,%s",ss,aa);

&n

微信扫码获取答案解析
下载APP查看答案解析