📄 pr19009.cpp
字号:
////////////////////////////////////////
// File Name: pr19009.cpp
////////////////////////////////////////
#include <fstream.h>
main()
{
std::ifstream tfile("test.dat");
while (!tfile.eof())
{
char ch;
std::streampos here = tfile.tellg();
tfile.get(ch);
if (ch == ' ')
std::cout << "\nPosition "
<< here << " is a space";
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -