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
_______________________________________________
gtkmm-list mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/gtkmm-list
