#include <stdio.h>
#include<fstream>
#include<iostream>
#include<string>
using namespace std ;
int main(){
string line ;
ifstream infile;
infile.open("1.txt");
ofstream outfile;
outfile.open("1-1.txt");
while(infile>>line){
line=line.substr( line.find_first_of('.')+1 );
outfile<<line<<endl;
}
outfile.close();
}
c++去掉去掉文本每行前序号 字符串前缀
最新推荐文章于 2023-04-10 21:34:03 发布