Write your question here.
Hey everybody I have some code that is supposed to reverse the order of a word. My program crashes and says: Debug Assertion Failed Expression: string subscript out of range. This piece of code makes my program crash : newsentence[end]=sentence[start];
Can someone please give me a fix.
Also, newsentence has not been assigned a value. Modifying characters that do no exist, may result in errors; the work around I provided was to concatenate characters.