Thread: question about program setup

  1. #1
    Registered User
    Join Date
    Mar 2012
    Posts
    2

    Question question about program setup

    -analysis, design and setup the following problem:
    -Given a string of series of 3-digit number following form: "101,102,103,104,201,202,205,206,207,208,209,210,2 12,215,301,302,303,304,305,401,403 ...." (arbitrary length)
    -Get Organized to print out the results on many lines, each no more than 30 characters. The contents of each line must contain the following:
    101-104,201,202,205-210,212,215
    301-305,401,403 ....
    (If the sequence numbers of more than 3 consecutive numbers is taken as min-max)

  2. #2
    Registered User
    Join Date
    Mar 2011
    Posts
    546
    are you giving me an assignment? I'll get right on it.

  3. #3
    Registered User
    Join Date
    Mar 2012
    Posts
    2
    example:201,202,203,204,205 were converted into 201-205

  4. #4
    Registered User
    Join Date
    Dec 2011
    Posts
    795
    What makes you think "C Board" is the same as "Dump homework assignments and check for answers in one hour board".

    Seriously, read the Homework Policy and don't call yourself a "hacker" when you're still asking questions like this.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Windows 7 64bit SDL setup question?
    By Abstracticus in forum Windows Programming
    Replies: 4
    Last Post: 05-09-2011, 09:34 PM
  2. [newbie question] C setup
    By jimmychauck in forum C Programming
    Replies: 7
    Last Post: 10-27-2010, 10:38 PM
  3. start the program when GUI is setup on Linux
    By manav in forum Linux Programming
    Replies: 2
    Last Post: 03-26-2008, 04:02 AM
  4. Newbie Question!!! How to setup compiler
    By Mithrandil in forum C++ Programming
    Replies: 1
    Last Post: 10-04-2003, 10:32 AM
  5. Socket Program includes and setup
    By Ianel in forum Networking/Device Communication
    Replies: 2
    Last Post: 09-23-2003, 05:23 PM

Tags for this Thread