题目 编写程序,用二进制方式打开指定的一个文件,在每一行前加行号。 相关阅读 相关阅读 完整代码 #include <bits/stdc++.h> using namespace std; int main(){ fstream file("test.txt", ios::in