
【名词&注释】
字符串(string)、表达式、初始化(initialization)、--运算符
[单选题]当用户要求输入的字符串中含有空格时,应使用的输入函数是(此题先少打了个串字,已改正)
A. scanf()
B. getchar()
C. gets()
D. getc()
查看答案&解析
点击获取本科目所有试题
举一反三:
[单选题]有如下类定义: class Point{ private: static int how_many; }; ______how_many=0; 要初始化Point类的静态成员how_many,在下画线处应填入的内容是
A. int
B. static int
C. int Point::
D. static int Point::
[单选题]下列代码的执行结果是( )。 public class Test1 { public static void main(String args []) { float t=0f; int q=5; System. out. println((t++)*(--q)); } }
A. 40
B. 40
C. 36
D. 36
本文链接:https://www.zhukaozhuanjia.com/download/jq7j4y.html