有如下程序: #include<iostream> using namesp

题型:单项选择题

问题:

有如下程序:
#include<iostream>
using namespace std;
class Stack
public:
Stack(unsignedn=10):size(n)rep_=new int[size];top=0;
Stack(Stack& s):size(s.size)
rep_=new int[size];
fbr(inti=0;i<size;i++)rep_[i]=s.rep_[i];
top=s.top;

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

A.rep一_top]=a;top++;
int pop( )--top;return rep_[top];
b001 isEmpty( )constreturn top==0;
private:
int * rep_;
unsigned size,top;

int main( )
Stack sl;
for(int i=1;i<5;i++)s1.push(i);
Stack s2(s1);
for(i=1;i<3;i++)cout<-<s2.pop( )<<’,’;
s2.pusl:(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,

考点:计算机等级考试C++二级C++笔试
题型:单项选择题

颈胸段椎体结核截瘫,最早出现的症状是()

A.感觉异常

B.运动无力

C.膀胱括约肌障碍

D.肛门括约肌障碍

E.以上都不是

题型:单项选择题

常用于阴虚发热、骨蒸劳热的炮制品是()

A.生黄柏

B.酒黄柏

C.盐黄柏

D.黄柏炭

E.醋黄柏

题型:单项选择题

急性心包炎的可见症状为()

A.心前区疼痛

B.发热、出汗

C.呼吸困难

D.吞咽困难

E.乏力

题型:单项选择题

CONVERSATION 1


Time for the man to arrive at the hotel: (1) .
Price of the room: $ (2) .
Number of the unit: No. (3) .
On the (4) floor.

题型:单项选择题

11696等语音增值类业务,采用通信费封顶原则。

更多题库