多线程拷贝文件
#include <stdio.h>
#include <pthread.h>
#include <dirent.h>
#include <string.h>
#include <stdlib.h>
#include <iostream>
#include <fstream>
#include <iterator>
#include <string>
#include <vector>
using namespace std;
int mycopy(string src,string des)
{
try
{
ifstream file(src.c_str(),ios::in);
if(!file.is_open())
{
cout << "open src error \n";
return 1;
}
std::istreambuf_iterator<char> beg(file),end;
string strdata(beg,end);
file.close();
std::ofstream fout(des.c_str(),ios::out);
if (!fout.is_open())
{
c