Re: set_text () is not displaying the output.



On Tue, 2010-11-09 at 00:24 -0200, Rodrigo Nunes wrote:
>     for(int x = size; x >= 0; x--){
>                 Exit = Exit + Entry[x];
>             }   

The logic of this loop is incorrect. It should be

for(int x = size; x > 0; x--)
	Exit = Exit + Entry[x-1];

Also note that this won't work for non-ASCII characters. Using
Glib::ustring instead might work better.

Armin



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]