Thread: Can someone help me with this question (switch case)?

  1. #1
    Registered User
    Join Date
    Jul 2016
    Posts
    8

    Can someone help me with this question (switch case)?

    so the question tells me to create something like an address book. It uses switch case.

    It acquires me to do the following things:

    1) if the user enter 'i', it allows the user to enter it's name, phone number and email.
    2) when the user enters 'l', it's suppose to list all of the saved data on the file.
    3) when 's' is entered, it suppose to save the data entered in 'i'. when 's' is entered is suppose to be able to save all of the previously entered data.
    4) when 'o' is entered, its suppose to read the previously saved data.
    5) when 'c' is entered, it suppose to clear all the saved data.
    6) when 'q' is entered, it should quit the program.

    the program should be able to save the data of up to 50 people.

    Please help, much thanks.



    No verification will be required.

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,659
    http://cboard.cprogramming.com/c-pro...uncements.html

    You need to make an effort first.
    Show us where you're really stuck, then we can specifically help you.

    You can't just dump your assignment and get some kind of finished answer.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. question about switch case
    By san12345 in forum C Programming
    Replies: 9
    Last Post: 02-26-2016, 02:04 PM
  2. Question About a Switch Case Situation
    By GokhanK in forum C Programming
    Replies: 2
    Last Post: 07-31-2013, 03:50 PM
  3. switch case question
    By dantegl36 in forum C Programming
    Replies: 2
    Last Post: 12-04-2006, 11:12 AM
  4. Switch Case Question
    By dnysveen in forum C++ Programming
    Replies: 12
    Last Post: 06-06-2006, 05:34 AM
  5. switch() case 1: Question
    By Zero_X in forum C++ Programming
    Replies: 0
    Last Post: 04-18-2006, 12:33 PM

Tags for this Thread