txt文件每40字插入80个空格。。

来源:百度知道 编辑:UC知道 时间:2024/06/25 16:17:58
我的mp3屏幕坏了,看书不行了,只显示一半
这个程序不行啊。。

用Replace Pioneer 把第40,80,120,160,...个字后面加80个空格即可。详细步骤:
1. ctrl-o打开文本文件
2. ctrl-h打开Replace窗口
* 在Search for pattern下输入一个英文的小数点.表示任意字符。
* 在Unit Number Filter输入40<40>表示40,80...
* 在Replace with pattern下输入$match并在后面跟80个空格。
3. 点击Replace即可。

Replace Pioneer下载:
http://www.mind-pioneer.com/replace

我帮你编个程序如何? 我QQ:510762375
我编的比较简陋~ 只能自动更改c:\1.txt,你把需要更改的txt改名成1.txt放在c根目录下就行了~
这是C++代码:
#include<iostream>
#include<string>
#include<fstream> //文件流
using namespace std;
int main(){
int n=1;
string filename="c:\\new.txt";
ifstream in;
ofstream out;
in.open("c:\\1.txt",ios::binary);
if(!in){
cout<<"1.txt文件不存在!"<<endl;
return 0;
}
char blank[80];
for(int i=0; i!=80; i++)