网友您好, 请在下方输入框内输入要搜索的题目:

题目内容 (请给出正确答案)

Hardly _______ the railway station when the train started.

A.did I reach

B.had I reached

C.I reached

D.I had reached


参考答案

更多 “ Hardly _______ the railway station when the train started.A.did I reachB.had I reachedC.I reachedD.I had reached ” 相关考题
考题 【C程序】#includestdio.h/*此处为栈类型及其基本操作的定义,省略*/int main(){STACK station;int state[1000];int n; /*车厢数*/int begin, i, j, maxNo; /*maxNo为A端正待入栈的车厢编号*/printf("请输入车厢数:");scanf("%d",n);printf(“请输入需要判断的车厢编号序列(以空格分隔):”);if(n<1)return-1;for (i=0; in; i++) /*读入需要驶出的车厢编号序列,存入数组state[]*/scanf("%d",state[i]);(1) ; /*初始化栈*/maxNo=1;for(i=0; i<n; ){ /*检查输出序列中的每个车厢号state[i]是否能从栈中获取*/if( (2) ){ /*当栈不为空时*/if (state[i]=Top(station)) { /*栈顶车厢号等于被检查车厢号*/printf("%d",Top(station));Pop(station);i++;}elseif ( (3) ) {printf(“error\n”);return 1;}else{begin= (4) ;for(j=begin+l;j =state [i];j++){Push(station, j);}}}else{ /*当栈为空时*/begin=maxNo;for(j=begin; j=state[i];j++) {Push(station, j);}maxNo= (5) ;}}printf("OK");return 0;}

考题 Susan: When's the meeting?Harry: I'm driving into London tomorrow morning. The meeting (60) .

考题 I’d like to know what time we can get the container ()it is in the port. A、whereB、whyC、when

考题 Hardly _______ on stage _____ the audience started cheering. A、he had come/thanB、he had come/whenC、had he come/thanD、had he come/when

考题 阅读以下说明和Java代码,填补代码中的空缺,将解答填入答题纸的对应栏内。 【说明】 以下Java代码实现两类交通工具(Flight和Train)的简单订票处理, 类Vehicle、Flight、Train之间的关系如图5-1所示。图5-1【Java代码】 import java.util.ArrayList; import java.util.List; abstract class Vehicle { void book(int n) { //订 n张票 if (getTicket0()=n) { decrease Ticket(n); } else { System.out.println(余票不足!!); } } abstract int getTicket(); abstract void decreaseTicket(int n); }; class Flight (1) { Private (2) tickets=216; //Flight的票数 Int getTicket(){ Return tickets; } void decreaseTicket(int n){ tickets=tickets -n; } } class Train (3) { Private (4) tickets=2016; //Train的票数 int getTicket() { return tickets; } void decreaseticket(int n) { tickets = tickets - n; } } public class Test { public static void main(String[] args) { System.out.println(欢迎订票 ! ); ArrayListVehicle v = new ArrayListVehicle(); v.add(new Flight()); v.add(new Train()); v.add(new Flight()); v.add(new Train()); v.add(new Train()); for (int i=0;iv.size(); i++){ (5) (i+1); //订i+1张票 System.out.println(剩余票数: +v.get(i).getTicket()); } } } 运行该程序时输出如下: 欢迎订票! 剩余票数:215 剩余票数:2014 剩余票数: (6) 剩余票数: (7) 剩余票数: (8)

考题 试题七(共 15 分)阅读以下说明和C程序,将应填入 (n) 处的字句写在答题纸的对应栏内。【说明】现有 n(n 1000)节火车车厢,顺序编号为 1,2,3,...,n,按编号连续依次从 A方向的铁轨驶入,从 B 方向铁轨驶出,一旦车厢进入车站(Station)就不能再回到 A方向的铁轨上;一旦车厢驶入 B 方向铁轨就不能再回到车站,如图 7-1所示,其中 Station 为栈结构,初始为空且最多能停放 1000 节车厢。下面的 C 程序判断能否从 B 方向驶出预先指定的车厢序列,程序中使用了栈类STACK,关于栈基本操作的函数原型说明如下:void InitStack(STACK *s):初始化栈。void Push(STACK *s,int e): 将一个整数压栈,栈中元素数目增 1。void Pop(STACK *s):栈顶元素出栈,栈中元素数目减 1。int Top(STACK s):返回非空栈的栈顶元素值,栈中元素数目不变。int IsEmpty(STACK s):若是空栈则返回 1,否则返回 0。【C 程序】includestdio.h/*此处为栈类型及其基本操作的定义,省略*/int main( ){STACK station;int state[1000];int n; /*车厢数*/int begin, i, j, maxNo; /*maxNo 为 A端正待入栈的车厢编号*/printf("请输入车厢数: ");scanf("%d",n);printf("请输入需要判断的车厢编号序列(以空格分隔) : ");if (n 1) return -1;for (i = 0; in; i++) /* 读入需要驶出的车厢编号序列,存入数组 state[] */scanf("%d",state[i]);(1) ; /*初始化栈*/maxNo = 1;for(i = 0; i n; ){/*检查输出序列中的每个车厢号 state[i]是否能从栈中获取*/if ( (2) ){/*当栈不为空时*/if (state[i] == Top(station)){ /*栈顶车厢号等于被检查车厢号*/printf("%d ",Top(station));Pop(station); i++;}elseif ( (3) ){printf("error\n");return 1;}else {begin = (4) ;for(j = begin+1; j=state[i]; j++) {Push(station, j);}}}else { /*当栈为空时*/begin = maxNo;for(j = begin; j=state[i]; j++){Push(station, j);}maxNo = (5) ;}}printf("OK");return 0;}

考题 The earthquake broke out on a day _______ my father left for America, a day _______I’ll never forget.A.that; when B.when; when C.that; which D.when; that

考题 The earthquake broke out on a day______ my father left for America, a day _______ I’ll never forget.A.that; when B.when; when C.that: which D.when; that

考题 I′ll never forget the day__________I became a doctor.A.that B.which C.where D.when

考题 I’ll work( )because I don’t want to let him down. A.hard B.hardest C.harder D.hardly