📄 ichar.cpp
字号:
// ichar.cpp
// file input with characters
#include <fstream> //for file functions
#include <iostream>
using namespace std;
int main()
{
char ch; //character to read
ifstream infile("TEST.TXT"); //create file for input
while( infile ) //read until EOF or error
{
infile.get(ch); //read character
cout << ch; //display it
}
cout << endl;
return 0;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -