Thread: calling function

  1. #1
    anonymous
    Guest

    Unhappy calling function

    iam designing a menu driven program and want to call a function
    when chosen a selection. My function contains two parameters
    of type char array and of type int array. Could any1 help me here...?should i call it in main or can i call it in a switch statement or either....?. I have another question also
    i have a parrallel array one of each type char and int
    and want the user to input a specific character e.g a roman numeral and have the equivalent value in the int array.My menu driven fragment of code is a do while loop.....also with the parrallel arrays i want to be able to add the values of array type int, should i creat another array and use assigning techniques or
    shouldnt i use another array at all?. If you are able to help me , could you please give me an example... to give me an idea of what your talking about... would be much appreciated.

  2. #2
    Hamster without a wheel iain's Avatar
    Join Date
    Aug 2001
    Posts
    1,385
    i wrote a menu system like this. Yo can call functions when options are selected, customize the functions and the ui.
    It also includes error checking and comments.

    www.iainpb.co.uk/temporary/cdms.zip

    hth
    Monday - what a way to spend a seventh of your life

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Compiling sample DarkGDK Program
    By Phyxashun in forum Game Programming
    Replies: 6
    Last Post: 01-27-2009, 03:07 AM
  2. Replies: 28
    Last Post: 07-16-2006, 11:35 PM
  3. Calling a Thread with a Function Pointer.
    By ScrollMaster in forum Windows Programming
    Replies: 6
    Last Post: 06-10-2006, 08:56 AM
  4. Dikumud
    By maxorator in forum C++ Programming
    Replies: 1
    Last Post: 10-01-2005, 06:39 AM
  5. Question on function syntax and calling function
    By cbrman in forum C Programming
    Replies: 10
    Last Post: 10-05-2003, 05:32 PM