且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

从命令行复制C ++文件

更新时间:2023-11-10 11:17:10

我建​​议你开始编码并创建你的程序。这里没有人会为你做功课。
I suggest you start coding and get your program created. No one here is going to do your homework for you.


主要功能的定义是:



The definition of main function would be:

int main(int argc,char **argv)





创建一个可以复制文件部分的函数



然后循环调用该函数。





例如:



create a function that would do the copy file part

then call the function in loop.


example:

int main(int argc, char **argv)
{
 for(int i=0;i<argc;i++)>
 {
  function_to_copy(argv[i],copied_path);
 }
}