Re: set_text () is not displaying the output.
- From: Armin Burgmeier <armin arbur net>
- To: Rodrigo Nunes <rnsribeiro gmail com>
- Cc: gtkmm-list gnome org
- Subject: Re: set_text () is not displaying the output.
- Date: Tue, 09 Nov 2010 09:50:26 +0100
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]