Thread: Sorting 3 arrays alphabetically

  1. #31
    Registered User
    Join Date
    Mar 2011
    Posts
    25
    Sorry for the late reply, I've been doing other programs as well.
    Thanks for pointing out the mistake man, i'll study the code more. It seems the variables i and j confuse me most of the times, have to work on that.
    And thanks for helping

  2. #32
    Banned
    Join Date
    Aug 2010
    Location
    Ontario Canada
    Posts
    9,547
    Quote Originally Posted by Nephilim View Post
    Sorry for the late reply, I've been doing other programs as well.
    Thanks for pointing out the mistake man, i'll study the code more. It seems the variables i and j confuse me most of the times, have to work on that.
    And thanks for helping
    Then don't use i and j ... use more meaningful names... OLoop and ILoop, SalesTax etc. Not only does is minimize the confusion, it will help you remember what you've done when you have to revisit the code in 5 years... Meaningful variable names, comments for non-obvious stuff, function desciptions etc are all more work now but extremely helpful later.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Sorting an array alphabetically?
    By bluebob in forum C Programming
    Replies: 7
    Last Post: 03-09-2011, 04:53 AM
  2. Replies: 26
    Last Post: 06-11-2009, 11:27 AM
  3. Replies: 16
    Last Post: 01-01-2008, 04:07 PM
  4. Replies: 2
    Last Post: 02-23-2004, 06:34 AM
  5. sorting arrays
    By Unregistered in forum C++ Programming
    Replies: 3
    Last Post: 10-13-2001, 05:39 PM