c++ - Incorrect Output After Increment -
i'm trying test function shownumbers, nothing being printed out screen. tried print out value of array index make sure has been incremented, value resulted in zero. here input , output.
input: 444a4 output: 0
and here link header file: http://pastebin.com/pfey3hpq
, main function: http://pastebin.com/5wlwncy0
you're not initialising i in loop in counter::countnumbers
method. have this:
for(unsigned int i;i<input.length();i++){
when should this:
for(unsigned int = 0;i<input.length();i++){
Comments
Post a Comment