|
|
вернуться в форумОбщий форумWhat must I use instead of strrev() function? (for reversing string.) Edited by author 06.08.2010 21:26 Re: What must I use instead of strrev() function? (for reversing string.) depends what you need. you can do so: string s="", g = "andrew"; int len = 6; for(int i=len-1; i>-1; i--){ s+=g[i]; } Re: What must I use instead of strrev() function? (for reversing string.) Well, you can use whatever you want. For example, std::reverse or your own bicycle. :) No subject Edited by author 07.08.2010 17:42 Re: What must I use instead of strrev() function? (for reversing string.) By telling so he meant that you are trying to invent something that have been already invented :) Edited by author 07.08.2010 00:45 No subject Edited by author 07.08.2010 17:42 |
|
|