[sorry the title is misleading/incorrect. I edited my post, but couldnt change the title]
Hi all, I'm having a problem with a function that is supposed to reverse a string. When i Run it, I'm getting a box that says
Thanks for any help you can give methe instruction at "some hex address" referenced memory at "some other hex address." The memory could not be "written"
Here is my code
Code:string szReverse(string szString) { string szNewString; int iLength = szString.length(); for (int i = 0; i < iLength; i++) { szNewString[i] = szString[iLength - i - 1]; } return szNewString; }