I'm a beginning programmer, and I'm working on a problem in
Programming in Objective-C, by Stephen G. Kochan from Chapter 6,
number 6, and the code for my current solution is below, which isn't
satisfactory, because it leaves me with this output (I have a bunch
of extra output that I have left in from intermediary stages of
development for debugging) :
BRUNOISE.local_vieuxnez_/Users/vieuxnez/Documents/Programming/
Objective-C/Programming in Objective-C by Stephen G.
Kochan_05/12/05_0:24_762_Chapter\ 6/Exercises/Ex6/Digit\ to\ Number\
Converter
Enter your number.
1234
12
Number length is 4
1234 1234
1
10 2
100 3
1000 4
Number's place value is 1000
one
two
three
four
The output should be simply:
Enter your number.
1234
one two three four
If you look at the code, though, there's a small part at the end of
the loop.
<CODE BIT>
printf ( "\n" ) ;
</CODE BIT>
That for some reason, the loop won't run without, meaning, if I
change it to
<CODE BIT>
printf ( " " ) ;
</CODE BIT>
Like I want, the loop doesn't run. I should also mention that for
some reason, after I added these commented out debugging statements,
the loop started running as well, but not correctly. For some reason
the last digit would never get printed out, and I could never single
out which of the statements was enabling the loop. To be honest, I
was shooting in the dark when I put the statements in there, since at
the time, nothing seemed to make the loop work, then for some reason,
the combination of adding all those debugging printf statements made
the loop work, though the last digit wouldn't be printed with just
them.)
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Objc-language mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden