Sep 10, 2011 at 8:07pm Sep 10, 2011 at 8:07pm UTC
test=input[len];
think about what this line does
Sep 12, 2011 at 5:04am Sep 12, 2011 at 5:04am UTC
I understand a problem little bit
every turn writes one character when loop over the last character is input's first character and test's value is first character of input
but i got no idea how to do please help
sorry for my english
Last edited on Sep 12, 2011 at 5:05am Sep 12, 2011 at 5:05am UTC
Sep 12, 2011 at 5:08am Sep 12, 2011 at 5:08am UTC
Set test to its current value in addition to the new character:
test = test + input[len];
Another way to write that is:
test += input[len];
Or you can do:
test.append(1, input[len]);
Last edited on Sep 12, 2011 at 5:09am Sep 12, 2011 at 5:09am UTC