没有优化 没有注释 全是硬代码
#include <iostream>
#include <fstream>
#include <iomanip>
using namespace std;
int main()
{
ofstream out("change.bat");
int count = 1;
char begin[12]="包公案_";
// char name[4]=""
char end[27]="[有声下吧www.Ysx8.com].mp3";
for (count = 1;count<91;count++)
{
if (count<10)
{
out<<"ren "<<begin<<"00"<<count<<end<<" "<<"00"<<count<<".mp3"<<endl;
}
else
{
out<<"ren "<<begin<<"0"<<count<<end<<" "<<"0"<<count<<".mp3"<<endl;
}
}
}
本文介绍了一个使用C++编写的简单程序,该程序能够批量生成用于重命名一系列MP3文件的批处理命令。通过循环迭代,程序为每个文件生成一个特定格式的新名称,并将这些命令写入到一个bat批处理文件中。
1019

被折叠的 条评论
为什么被折叠?



