arrays and strings task_ ideas

This is a discussion on arrays and strings task_ ideas within the C Programming forums, part of the General Programming Boards category; hey everybody! i'm really new to c programing , i truly hopes to get some ideas ( hints if possible ...

  1. #1
    Registered User
    Join Date
    Mar 2011
    Posts
    1

    arrays and strings task_ ideas

    hey everybody!

    i'm really new to c programing , i truly hopes to get some ideas
    ( hints if possible ) to a task in c that i'v been given.

    the task goes like this:

    1. Input the string

    Description: Input the string after the following message
    Please, enter your string>
    Maximal allowed string length is 420. Each number in the string must be maximum
    20 digits, and there must be maximum 20 numbers. In case of empty string or string
    consisting characters which are not digits or spaces, as well as in case of more than
    20 numbers in the string, or in case of number longer than 20 digits, the following
    message will appear:
    ERROR: Bad string, try again.
    and the program asks to input the string again.

    these are the instructions , i don't know how what is an empty string , or how should i deal with it, and what kind of variables i should use ( i'm not allowed to use string function , or any other kind of funcitons,only strings and arrays...

    thank you all!

  2. #2
    ATH0 quzah's Avatar
    Join Date
    Oct 2001
    Posts
    14,826
    Start with writing a program that outputs your prompt, asking you for a string. Once you have that, then you can go about reading it in later. You have to put some kind of effort into this. Show us what you can do, and we'll lend a hand when you are stuck. We aren't going to write the whole thing for you.


    Quzah.
    Hope is the first step on the road to disappointment.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. quick sort arrays of strings
    By nik2 in forum C Programming
    Replies: 5
    Last Post: 04-25-2010, 02:01 PM
  2. help understanding arrays of strings!
    By smoking81 in forum C Programming
    Replies: 18
    Last Post: 02-23-2008, 03:24 AM
  3. arrays of strings
    By mbooka in forum C Programming
    Replies: 2
    Last Post: 02-19-2006, 06:55 PM
  4. strings or arrays of characters?
    By Callith in forum C++ Programming
    Replies: 13
    Last Post: 12-26-2004, 10:28 AM
  5. strings or character arrays
    By Shadow12345 in forum C++ Programming
    Replies: 2
    Last Post: 07-21-2002, 10:55 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21