I want to copy the string from orig to dest. by the function ypcrts.. so what is the problem in my code.. thx a lot
using namespace std;
char ypcrts(char* dest, char *orig)
for (p = orig + strlen(orig)-1 ; dest < orig; dest+i, p--)
c = *orig;
*dest = *p;
*p = c;
so I want to get .... ch1=olleH
I'm beginner... is there sth not clear in my code ...???
You are not doing what you think you are doing.
So comment your code with the intention (please use code tags)