#include <stdio.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <unistd.h>
#include <strings.h>
#include <string.h>
#include <stdlib.h>
#define SIZE 50 //堆或者数组buffer的大小
#define W_BUF_SIZE 100 //文件复制过程中,设置写入缓冲区字节大小
int main(int argc, const char* argv[])
{
/* //0.选择源文件、目标文件 */
//输入src_file绝对路径名
printf("pls input src_file_path: ");
char *src_file=malloc(SIZE);
bzero(src_file,SIZE);
scanf("%s",src_file);while(getchar()!='\n');
printf("src_file : %s\n",src_file);
//输入des_file绝对路径名
printf("pls input des_file_path: ");
char *des_file=malloc(SIZE);
bzero(des_file,SIZE);
scanf("%s",des_file);while(getchar()!='\n');
printf("des_file : %s\n",des_file);