📄 main.cpp
字号:
#include <iostream>
#include <stdlib.h>
#include <string>
#include <fstream>
using namespace std;
string ReadString(ifstream &file) {
char buf[1024]; // Make sure this is big enough!
file.getline(&(buf[0]), 1024, ';');
return string(buf);
}
int main(int argc, char *argv[])
{
ifstream delimfile("/delims.txt");
while (1) {
string words = ReadString(delimfile);
if (delimfile.eof() == true)
break;
cout << words << endl;
}
delimfile.close();
system("PAUSE");
return 0;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -