PTA——c++基本输入输出

1.使用提取符(<<)可以输出各种基本数据类型的变量的值,也可以输出指针值。(T)

2.预定义的插入符从键盘上接收数据是不带缓冲区的。(F)

3.使用操作符setw对数据进行格式输出时,需要包含()文件。

 iomanip.h

 4.cout 是由I/O 流库预定义的( )

 对象

5.下列程序输出的结果为:

#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;
}

66

 
 
原文地址:https://www.cnblogs.com/1305536110-dym/p/14903491.html