?? lab11_2.cpp
字號(hào):
//lab11_2.cpp
#include <fstream>
#include <strstream>
#include <cstdlib>
using namespace std;
void main(int argc, char* argv[])
{
strstream file1;
{
ifstream in(argv[1],ios::binary);
file1 << in.rdbuf();
}
ofstream out(argv[1],ios::binary);
const int bsz = 100;
char buf[bsz];
int line = 0;
while(file1.getline(buf, bsz)) {
out.setf(ios::right, ios::adjustfield);
out.width(1);
out << ++line << ". " << buf << endl;
}
}
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -