command-line phonebook using a dictionary

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • DDCane
    New Member
    • Oct 2007
    • 16

    command-line phonebook using a dictionary

    i need to make a dictionary that works as a telephone book.
    this is what needs to happen when i type in the following:

    add name number – it adds the name and number to the phonebook
    lookup name – returns the number for the given name
    alias name newname – lets u look up the number by typing the name or the alias "newname".
    change name number – changes the number that is connected to the given name
    quit – shuts down the the interactive use of the dictionary

    thanks guys!
  • bartonc
    Recognized Expert Expert
    • Sep 2006
    • 6478

    #2
    That sounds a lot like your Votes using dictionary problem, which I never hear was any use to you. Start with that and post what you have come up with. You've come a long way in just a few days and I don't think that it's asking too much to ask you to follow the Posting Guidelines.

    Comment

    • bartonc
      Recognized Expert Expert
      • Sep 2006
      • 6478

      #3
      Originally posted by bartonc
      That sounds a lot like your Votes using dictionary problem, which I never hear was any use to you. Start with that and post what you have come up with. You've come a long way in just a few days and I don't think that it's asking too much to ask you to follow the Posting Guidelines.
      Here's a hint: Phone numbers should be stored as strings, not numeric values.

      Comment

      • DDCane
        New Member
        • Oct 2007
        • 16

        #4
        The voting worked perfect. it was exactly what i needed.
        the only reason im asking alot is cuz i have a dead line next week and i got alot to get done that is kinda hard for me.

        Originally posted by bartonc
        Here's a hint: Phone numbers should be stored as strings, not numeric values.

        Comment

        • bartonc
          Recognized Expert Expert
          • Sep 2006
          • 6478

          #5
          Originally posted by DDCane
          The voting worked perfect. it was exactly what i needed.
          the only reason im asking alot is cuz i have a dead line next week and i got alot to get done that is kinda hard for me.
          That's OK. But this is help forum, not a do-your-work-for-you site.
          So, please, post some sort of start so that we can help you get it going.

          Comment

          Working...