Bad strrev()![]()
Code:void mystring::strrev() { char c; size_t half=len/2, i=0; for( ; i<half; ++i) { c=s[i]; s[i]=s[len-i-1]; s[len-i-1]=c; } }
| CodeGuru Home | VC++ / MFC / C++ | .NET / C# | Visual Basic | VB Forums | Developer.com |
|
Results 1 to 15 of 22
Thread: String proplem!!!!Please helpThreaded View
|
Click Here to Expand Forum to Full Width |