Thread: problem

  1. #1
    Unregistered
    Guest

    problem

    i have to program this and i am not doing very well on it.anyone with better ideas please
    help me.
    Input:
    User may enter a maximum of 10 names. Each name will be entered on a separate line and you may assume that it will not be more than 30 characters long including spaces. Names may be entered in uppercase, lowercase or any combination of the two. Examples:

    shaHid ahmEd
    JAVAID KHAN
    WaSEEm akRAM

    Requirement:
    Use a two dimensional array of characters to store the names. If the user enters a character that is not an alphabet, ask him to renter. Remove all blanks and convert all letters to uppercase before comparing. Print the sorted names in the following manner:

    Javaid Khan
    Shahid Ahmed
    Waseem Akram

  2. #2
    Registered User Engineer's Avatar
    Join Date
    Oct 2001
    Posts
    125
    To convert between lower- and upper-cases use toupper() and tolower() from <ctype.h>
    1 rule of the Samurai Code: if you have nothing to say, don't say anything at all!

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Need help understanding a problem
    By dnguyen1022 in forum C++ Programming
    Replies: 2
    Last Post: 04-29-2009, 04:21 PM
  2. Memory problem with Borland C 3.1
    By AZ1699 in forum C Programming
    Replies: 16
    Last Post: 11-16-2007, 11:22 AM
  3. Someone having same problem with Code Block?
    By ofayto in forum C++ Programming
    Replies: 1
    Last Post: 07-12-2007, 08:38 AM
  4. A question related to strcmp
    By meili100 in forum C++ Programming
    Replies: 6
    Last Post: 07-07-2007, 02:51 PM
  5. WS_POPUP, continuation of old problem
    By blurrymadness in forum Windows Programming
    Replies: 1
    Last Post: 04-20-2007, 06:54 PM