#include
#include
#include
#include
#include
#include
using namespace std;
string filesave;
void Move(string sPath);
void GetLineAndPrint(string in_name)
{
ifstream fin(in_name);
ofstream out(filesaveios::app);
if (!fin)
{
cerr << “open file error“ << endl;
exit(-1);
}
string str;
while (getline(fin str))
{
//cout << str << endl;
out< }
fin.close();
}
bool endswith(const string& str const string& end)
{
int srclen = str.size();
int endlen = end.size();
if(srclen >= endlen)
{
string temp = str.substr(srclen - endlen endlen);
if(temp == end)
return true;
}
return false;
}
int main()
{
struct _finddata_t fileinfo;
string in_path;
string in_name;
system(“color 2e“);
while(true)
{
cout << “输入文件夹路径:“ ;
cin >> in_path;
if(in_path==“quit“)break;
filesa
评论
共有 条评论