单项选择题
A.句点 B.冒号 C.分号 D.逗号
假定有“structBOOK{chartitle[40];floatprice;}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;
假定有“structBOOK{chartitle[40];floatprice;};structBOOKboo...
单项选择题假定有“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;
要求编写一个主函数,计算并输出12+22+...+n2值,其中n值由键盘输入。
问答题要求编写一个主函数,计算并输出12+22+...+n2值,其中n值由键盘输入。