niusouti.com
更多“The burning question in this year’s debate is: whose taxes should (). ”相关问题
  • 第1题:

    已知学生记录描述为:

    struct student

    { int no;

    char name[20],sex;

    struct

    { int year,month,day;

    } birth;

    };

    struct student s;

    设变量s中的"生日"是"1984年11月12日",对"birth"正确赋值的程序段是

    A.year=1984;month=11;day=12;

    B.s.year=1984;s.month=11;s.day=12;

    C.birth.year=1984;birth.month=11;birth.day=12;

    D.s.birth.year=1984;s.birth.month=11;s.birth.day=12;


    正确答案:D

  • 第2题:

    有以下定义和语句

    Struct Workers

    { int num;char name[20];char c;

    struct

    { int day;int month;int year;}s;

    };

    Struct Workers W,*pe;

    PW=&W;

    能给W中yeaR成员赋1980的语句是

    A.*pW.yeaR=1980;

    B.W.yeaR=1980;

    C.pW->yeaR=1980;

    D.W.s.yeaR=1980;


    正确答案:D
    解析:结构体structure workers中的成员s是结构体类型,给w中成员year赋值的语句是w.s.year=1980,故选D。

  • 第3题:

    Which of the following shows the proper pronunciation of "whose" in the sentence "'In America, Li stayed in a family whose landlady could help him with his English"?

    A./hus/
    B./huz/
    C./hu:s/
    D./hu:z/

    答案:D
    解析:
    考查单词的重读。whose在这个定语从句中是关系代词,起连接作用,而且在从句中作定语,需要重读,发长音,因此D项正确。

  • 第4题:

    已知学生记录描述为: struct student { int no; char name[20],sex; struct { int year,month,day; } birth; }; struct student s; 设变量s中的“生日”是“1984年11月12日”,对“birth”正确赋值的程序段是( )。

    A.year=1984;month=11;day=12;

    B.s.year=1984;s.month=11;s.day=12;

    C.birth.year=1984;birth.month=11;birth.day=12;

    D.s.birth.year=1984;s.birth.month=11;s.birth.day=12;


    正确答案:D
    解析:本题考查结构体变量的基本概念。引用结构体成员的方式为:结构体变量名.成员名“.”是“成员运算符”(分量运算符),如果成员本身又是一个结构体类型,则要用若干个成员运算符,一级一级地找到最低一级的成员。只能对最低级的成员进行赋值或存取以及运算,所以选项D)正确。

  • 第5题:

    有以下定义和语句: struct workers {int num;char name[20];char C; struct {int day;int month;int year;)S; }; struct workers w,*pw; pw=&w; 能给w中year成员赋1980的语句是( )。

    A.*pw.year=1980;

    B.w.year=1980;

    C.pw->year=1980

    D.w.S.year=1980;


    正确答案:D
    结构workers中的成员s是一个嵌套的结构类型定义,因此在给year赋值时,要用“.”运算在深入一层访问到最基本的成员year,只有D项反映出了这一点。

  • 第6题:

    已知学生记录描述如下,设变量s中的“生日”应是“1984年11月11日”,下列对生日的正确赋值方式是()。 struct student{ int no; char name[20]; char set; struct{ int year; int month; int day; } birth; }; struct student s;

    A.year=1984;month=11;day=11;

    B.birth.year=1984; birth.month=11; birth.day=11

    C.s.year=1984;s.month=11;s.day=11

    D.s.birth.year=1984;s.birth.month=11; s.birth.day=11;


    s.birth.year=1984;s.birth.month=11; s.birth.day=11;