此题为判断题(对,错)。
第1题:
13.
A. English
B. Chinese
C. Japanese
D. American
第2题:
第3题:
课后练习:按以下要求编写程序 (1)编写Plant接口,接口中声明eatable()方法 (2)定义Grass类和Tomato类实现Plant接口 (3)编写Grass类和Tomato类的测试类,并调用其中的eatable()方法,输出相关信息。
第4题:
第5题:
假定有“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;
第6题:
假定p指向的字符串为”leaves”,则cout<<p+2的输出结果是【 】
A.a
B.aves
C.eaves
D.leaves