1-1
使用提取符(<<)可以输出各种基本数据类型的变量的值,也可以输出指针值。T
1-2
预定义的插入符从键盘上接收数据是不带缓冲区的。F
2-1
使用操作符setw对数据进行格式输出时,需要包含()文件。C
A.iostream.h
B.fstream.h
C.iomanip.h
D.stdlib.h
2-2
cout 是由I/O 流库预定义的( )。B
A.类
B.对象
C.包含文件
D.常量
2-3
分析以下程序:程序的输出结果是 B
#include <iostream>
using namespace std;
void fun(int num) {
cout << num << endl; }
void fun(char ch) {
cout << (ch + 1) << endl; }
int main() {
fun('A');
return 0;
}
A.65
B.66
C.A
D.B