更多“Sally, _____ your sunglasses. The sun is so bright.A. put onB. put upC. put awayD. put ”相关问题
  • 第1题:

    You needn't go back to London tonight.We can( )you______for the night.

    A.put...away

    B.put ...up

    C.put...off

    D.put...down


    参考答案:B

  • 第2题:

    如下函数的作用是以双倍行距输出文件: void double_space(ifstream &f,ofstream &t){ char c; while(______){ ______; if(c=='\n')t.put(c); } } 画线处缺失的部分是

    A.f.get(c)与t.put(c)

    B.f.put(c)与t.get(c)

    C.t.get(c)与f.put(c)

    D.t.put(c)与f.get(c)


    正确答案:A

  • 第3题:

    下面函数的作用是以双倍行距输出文件:

    void test(ifstream&outf,ofstream&outC) {

    char c;

    while(______){

    ______;

    if(c=='\n')outc.put(C) ;

    }

    }

    下划线处缺失的代码是( )。

    A.outf.put(C) 与outc.get(C)

    B.outf.put(C) 与outc.get(C)

    C.outf.get(C) 与outc.put?

    D.outf.get(C) 与outc.put?


    正确答案:D
    解析:ifstream是文件输入流类,只能用于输入,它没有提供任何用于输出的操作。ofstream是文件输出流类,只能用于输出,它没有提供任何用于输入的操作。从文件中输入字符要用文件输入流类引用outf,并调用其输入字符的成员函数get()。根据题目中的要求,可以看出当输入文件中读到换行符时,程序将在输出文件中两次输出换行符,即双倍行距。outc.put(C) 为输出一个字符,因为“if(c=='\n')coutc.put(C) ;”此句,当c为间格字符(行距字符)时,再多输出一次outc.put(C) 。

  • 第4题:

    The baby is sleeping. () it ().

    A、leave…alone

    B、call…up

    C、put…aside

    D、put…away


    参考答案:A

  • 第5题:

    POST的全称是()。

    A.put-on self-test

    B.power-off self-test

    C.put-off self-test

    D.power-on self-test


    正确答案:D


  • 第6题:

    下面程序的输出结果是()。includeusing namespace std;void main(){char cl='a',c2='c

    下面程序的输出结果是( )。 #include<iostream> using namespace std; void main() { char cl='a',c2='c'; cout.put('a').put('c').put('\n'); cout.put(c1).put(c2); }

    A.ac a c

    B.ac ac

    C.a c ac c

    D.a c


    正确答案:B
    解析:分析该题,输出字符“a”,“c”和换行,然后再输出“a”,“c”。