943,928 Members | Top Members by Rank

Ad:
  • C Discussion Thread
  • Unsolved
  • Views: 1200
  • C RSS
You are currently viewing page 2 of this multi-page discussion thread; Jump to the first page
Dec 24th, 2008
0

Re: Sample program doesn't display all numbers. Help!

Umm, that sounded pretty unnecessary. Try:
  1. printf("row %d sum = %d\n", r + 1, tot);
Keep the loops the same. It will start the labeling at 1 (0 + 1) and go to 3 (2 + 1).
Reputation Points: 128
Solved Threads: 43
Posting Whiz
death_oclock is offline Offline
389 posts
since Apr 2006
Dec 24th, 2008
0

Re: Sample program doesn't display all numbers. Help!

Umm, that sounded pretty unnecessary. Try:
  1. printf("row %d sum = %d\n", r + 1, tot);
Keep the loops the same. It will start the labeling at 1 (0 + 1) and go to 3 (2 + 1).
I guess that was a li'l too much information, but he wasn't just asking about the labeling(I thought it would be too obvious a thing to ask). I assumed he was talking about array subscripts. Oh well...
Reputation Points: 124
Solved Threads: 18
Junior Poster
devnar is offline Offline
148 posts
since Sep 2008

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in C Forum Timeline: Read HTTP Headers from C program
Next Thread in C Forum Timeline: Couple questions...sorting





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC