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

题目内容 (请给出正确答案)
假定有“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=newBOOK”,则正确的语句为( )。 A.strcpy(book->title,”WangTao”)B.strcpy(book.title,”WangTao”)C.strcpy(*book.title,”WangTao”)D.strcpy((*book)->title,”WangTao”) ” 相关考题
考题 以下选项中正确的语句组是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;

考题 以下选项中正确的语句组是( )。A.char*s;s={f.BOOK!”};B.char*s;s:”BOOK!”:C.chars[10];s=”BOOK!”;D.cbars[];s:”BOOK!n:

考题 以下选项中正确的语句组是( )。A.char*s;8={1.BOOK!”}iB.char*s;8=”BOOK!”;C.char S[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”,则不正确的语句为( )。 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.title B.price C.author D.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;

考题 下列元素定义中正确的是()。A、book/BookB、BOOK/bookC、book/bookD、Book/bOOK

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

考题 al FoxPro中,如果用语句:a="book",book="展望",?a,book后,结果是: book 展望

考题 现有表book,主键bookid设为标识列。若执行语句:select*intobook2frombook,以下说法正确的是()。A、若数据库中已存在表book2,则会提示错误。B、若数据库中已存在表book2,则语句执行成功,并且表book2中的bookid自动设为标识。C、若数据库中不存在表book2,则语句执行成功,并且表book2中的bookid自动设为主键。D、若数据库中不存在表book2,则语句执行成功,并且表book2中的bookid自动设为标识。

考题 现有书目表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表中所有书名以“数据库”开头的书籍价格,下列()语句是正确的。A、SELECT price FROM book WHERE book_name=“数据库*”B、SELECT price FROM book WHERE book_name LIKE“数据库*”C、SELECT price FROM book WHERE book_name=“数据库%”D、SELECT price FROM book WHERE book_name LIKE“数据库%”

考题 单选题假定有“structBOOK{chartitle[40];floatprice;};BOOK*book;”定义,则不正确的语句为()。A BOOK*x=newbookB BOOKx={“C++Programming”,27.0}C 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”)

考题 单选题查询book表中所有书名中包含“计算机”的书籍情况,可用()语句。A SELECT*FROM book WHERE book_nameLIKE‘*计算机*’B SELECT*FROM book WHERE book_nameLIKE‘%计算机%’C SELECT*FROM book WHERE book_name=‘%计算机*’D SELECT*FROM book WHERE book_name=‘*计算机%’

考题 多选题现有表book,主键bookid设为标识列。若执行语句:select*intobook2frombook,以下说法正确的是()。A若数据库中已存在表book2,则会提示错误。B若数据库中已存在表book2,则语句执行成功,并且表book2中的bookid自动设为标识。C若数据库中不存在表book2,则语句执行成功,并且表book2中的bookid自动设为主键。D若数据库中不存在表book2,则语句执行成功,并且表book2中的bookid自动设为标识。

考题 单选题现有表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)

考题 判断题al FoxPro中,如果用语句:a="book",book="展望",?a,book后,结果是: book 展望A 对B 错

考题 单选题假定有“struct BOOK{char title[40]; float price;}; struct BOOK book;”,则不正确的语句为()。A struct BOOK *x=malloc(book);B struct BOOK x={C++ Programming,27.0};C struct BOOK *x=malloc(sizeof(struct BOOK));D struct 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;

考题 单选题要查询book表中所有书名中以“计算机”开头的书籍的价格,可用()语句。A SELECT price FROM book WHERE book_name=‘计算机*’B SELECT price FROM book WHERE book_nameLIKE‘计算机*’C SELECT price FROM book WHERE book_name=‘计算机%’D SELECT price FROM book WHERE book_nameLIKE‘计算机%’