i need your help i want to write a program which copy one folder or a file from one location to another location in c++???

You can copy a file like this

FILE *source, *target;
char ch;
source = fopen("source_file", "r");
target = fopen("target_file", "w");
while( ( ch = fgetc(source) ) != EOF )
  fputc(ch, target);
fclose(source);
fclose(target);

For copying a folder, get a list of all files in the source folder and copy each of the files one by one .