#include <iostream.h> #include<iomanip.h> #include<conio.h> //头文件conio.h提供了非缓冲单字符输出putch(ch)函数 void main() { char letter='B'; putch('A'); putch('\n'); putch(letter); putch('\n'); //换行 putch(getche()); //用getche()输入一个字符,并把这个字符用putch()输出 putch('\n'); putch('\007'); //输出转义字符响铃 }