guys i need your help. so this is my strcpy program. i am ask to create a program that will defined function that will do the same strcpy function using pointers only. did i do it right or wrong? please help me

#include<iostream>
#include<string.h>
using namespace std;

int main()
{
    char string1 [] = " Programming is great";
    char string2 [23] = {'\0'};

    strcpy (string2, string1);

    cout<<"string1:"<<string1<<endl;
    cout<<"string2:"<<string2<<endl;

    system("pause>0");
    return 0;

}

i am ask to create a program that will defined function that will do the same strcpy

You haven't defined any functions. You're supposed to be defining a function that does the same as strcpy. Where is your function to do the same as strcpy?