单选题假定有“struct BOOK{char title[40]; float price;} book;”,则正确的语句为()。Astruct BOOK x= book;Bstruct BOOK *x=book;Cstruct BOOK x=calloc(BOOK);Dstruct BOOK *x=BOOK;

单选题
假定有“struct BOOK{char title[40]; float price;} book;”,则正确的语句为()。
A

struct BOOK x= &book;

B

struct BOOK *x=&book;

C

struct BOOK x=calloc(BOOK);

D

struct BOOK *x=BOOK;


参考解析

解析: 暂无解析

相关考题:

● 在XML中,元素book 的声明语句如下:!ELEMENT book (title,price+,author?,borrow*)该声明语句表明,元素book中子元素 (62) 至少出现一次。A. title B. price C. author D. borrow

以下选项中正确的语句组是A)char s[]; s="BOOK!";B)char *s; s={"BOOK!"};C)char s[10]; s="BOOK!";D)char *s; s="BOOK!";

(32)以下选项中正确的语句组是A)char s[];s=”BOOK!”; B) char *s;s={”BOOK!”};C)char s[10];s=”BOOK!”; D) char *s;s=”BOOK!”;

假定有“structBOOK{chartitle[40];floatprice;};BOOK*book;”,则正确的语句为()。A、BOOK*x=newbook;B、BOOKx={"C++Programming",27.0};C、BOOK*x=newBOOK;D、BOOK*x=book;

下列选项中正确的语句是( )。A.chars[3];s="BOOK!";B.char*s;s={"BOOK!"};C.chars[10];s="BOOK";D.char*S;s="BOOK!";

有如下程序: #inCludeiostream using namespaCe std; Class Book{ publiC: Book(Char*t=””){strCpy(title,t);} private: Char titlel40]; }; Class Novel:publiC Book{ publiC: Novel(Char*t=””):Book(t){} Char*Category( )Const{return”文学”;} }; int main( ){ Book * pb; pb=new Novel( ); Coutpb→Category( ); delete pb; return 0; } 若程序运行时输出结果是“文学”,则横线处缺失的语句是( )。A.Char*Category( );B.Char*Category( )Const;C.virtual Char*Category( )Const;D.virtual Char*Category( )Const=0;

有如下程序:#includeiostreamusing namespace std;class Book{public:Book(char*t=””){strcpy(title,t);}private:char title[40];};class Novel:public Book{public:Novel(char *t=””):Book(t){}char*Category()const{return”文学”;)};int main(){Book *pb;pb=new Novel();coutpb-Category();return 0;}若程序运行时输出结果是“文学”,则划线处缺失的语句是A.char*Category();B.char*Category()const;C.virtual char*Category()const;D.virtual char*Category()const=0;

以下选项中正确的语句组是( )。A.char*s;8={1.BOOK!”}iB.char*s;8=”BOOK!”;C.char S[10];S=”BOOK!”;D.char S[];S=”BOOK!”;

下列选项中正确的语句是( )。A.chars[];s="BOOK!";B.char*s;S={"BOOK!");C.chars[10];s="BOOK";D.char*S;s="BOOK!";

假定有“structBOOK{chartitle[40]floatprice}book”,则正确的语句为( )。 A.BOOK&x=&bookB.BOOK&x=bookC.BOOK&x=newBOOKD.BOOK&x=BOOK

假定有“structBOOK{chartitle[40]floatprice}BOOK*book=newBOOK”,则正确的语句为( )。 A.strcpy(book->title,”WangTao”)B.strcpy(book.title,”WangTao”)C.strcpy(*book.title,”WangTao”)D.strcpy((*book)->title,”WangTao”)

假定有“structBOOK{chartitle[40]floatprice}BOOK*book”,则不正确的语句为( )。 A.BOOK*x=newbookB.BOOKx={"C++Programming", 27.0}C.BOOK*x=newBOOKD.BOOK*x=book

在XML中,元素book的声明语句如下:<1ELEMENT book(title.price+,author?,borrow*)>该声明语句表明,元素book中子元素______至少出现一次。A.titleB.priceC.authorD.borrow

在XML中,元素book的声明语句如下:<1ELEMENT book (title.price+, author?, borrow*)>该声明语句表明,元素book中子元素______至少出现一次。A.title]B.price]C.authorD.borrow

假定有“struct BOOK{char title[40]; float price;} book;”,则正确的语句为()。Astruct BOOK x= book;Bstruct BOOK *x=book;Cstruct BOOK x=calloc(BOOK);Dstruct BOOK *x=BOOK;

假定有“struct BOOK{char title[40]; float price;}; struct BOOK book;”,则不正确的语句为()。Astruct BOOK *x=malloc(book);Bstruct BOOK x={"C++ Programming",27.0};Cstruct BOOK *x=malloc(sizeof(struct BOOK));Dstruct BOOK *x=book;

现有表book,字段:id(int),title(varchar),price(float);其中id字段设为标识,使用insert语句向book表中插入数据,以下语句错误的是()。A、insert into book (id,title,price) values(1,'java',100)B、insert into book (title,price) values('java',100)C、insert into book values ('java',100) 这辆都不可以啊,如果不指定列需要明确的给出空值D、insert book values('java',100)

假定有“structBOOK{chartitle[40];floatprice;};BOOK*book;”定义,则不正确的语句为()。A、BOOK*x=newbookB、BOOKx={“C++Programming”,27.0}C、BOOK*x=newBOOKD、BOOK**x=&book

表book中包含三个字段:title(varchar),author(varchar),price(float)。Author的默认值是’UNKNOW’,执行sql语句:insertbook(title,price)values(‘jsp’,50)。以下结果正确的是()。A、插入失败,sql语句有错B、插入成功,author列的数据是UNKNOWC、插入成功,author列的数据是NULLD、插入成功,author列的数据是50

现有书目表book,包含字段:price(float);现在查询一条书价最高的书目的详细信息,以下语句正确的是()A、select top 1 * from book order by price ascB、select top 1 * from book order by price descC、select top 1 * from book where price= (select max (price)from book)D、select top 1 * from book where price= max(price)

现有书目表book,包含字段:价格price(float),类别type(char);现在查询各个类别的平均价格、类别名称,以下语句正确的是()。A、select avg(price),type from book group by typeB、select count(price),type from book group by priceC、select avg(price),type from book group by priceD、select count(price),type from book group by type

单选题假定有“structBOOK{chartitle[40];floatprice;};BOOK*book;”定义,则不正确的语句为()。ABOOK*x=newbookBBOOKx={“C++Programming”,27.0}CBOOK*x=newBOOKDBOOK**x=&book

单选题假定有“structBOOK{chartitle[40];floatprice;};BOOK*book=newBOOK;”,则正确的语句为()。Astrcpy(book-title,”WangTao”)Bstrcpy(book.title,”WangTao”)Cstrcpy(*book.title,”WangTao”)Dstrcpy((*book)-title,”WangTao”)

单选题现有表book,字段:id(int),title(varchar),price(float);其中id字段设为标识,使用insert语句向book表中插入数据,以下语句错误的是()。Ainsert into book(id,title,price)values(1,’java’,100)Binsert into book(title,price)values(’java’,100)Cinsert into book values(’java’,100)Dinsert book values(’java’,100)

单选题现有书目表book,包含字段:price(float);现在查询一条书价最高的书目的详细信息,以下语句正确的是()。Aselect top1*from book order by price ascBselect top1*from book order by price descCselect top1*from book where priceDselect top1*from book where price=max(price)

单选题假定有“struct BOOK{char title[40]; float price;}; struct BOOK book;”,则不正确的语句为()。Astruct BOOK *x=malloc(book);Bstruct BOOK x={C++ Programming,27.0};Cstruct BOOK *x=malloc(sizeof(struct BOOK));Dstruct BOOK *x=book;

单选题假定有“struct BOOK{char title[40]; float price;} book;”,则正确的语句为()。Astruct BOOK x= book;Bstruct BOOK *x=book;Cstruct BOOK x=calloc(BOOK);Dstruct BOOK *x=BOOK;

单选题现有表book,字段:id(int),title(varchar),price(float);其中id字段设为自增长的标识,使用insert语句向book表中插入数据,以下语句错误的是()。Ainsertintobook(id,title,price)values(1,’java’,100)Binsertintobook(title,price)values(’java’,100)Cinsertintobookvalues(’java’,100)Dinsertbookvalues(’java’,100)