A char* is not the same as a string. A char* doesn't has a size function. A char* is a pointer to a array of characters, nothing more. Use strlen to get the length of your text.Code:for (i=*Name.size(); i>0; --i)
'Reverse' points to the first character, and you are taking to content of that character. It should look something like this.Code:*Reverse=*Reverse+*Name[i];
Code:Reverse[j]=Reverse[j]+Name[i]; j++;The 2 vars are char, not char*... also, you aren't use 'name' at all, so why put it there at all.Code:void Write(char Reverse, char Name)




Reply With Quote