I am tyring to do a programm that will use the function strcpy and i have to add the a header file in this code so far this is what i have but it's not doing what it should do
the output should say this
Hello
World............
Code:#include <iostream.h> #include <string.h> #include "myStrcat.h" int main () { char a[20]; strcpy(a, "hello"); myStrcat(a,"world"); return 0; } char* myStrcat(char* dest, const char* src) { int i = strlen( src); while( *dest ) src[i++]; *dest++; src[i]; return dest; }