A
Anna
Hi.
I want to write a program which does different functions according to input.
I need to write it as general as possible.
Example:
input:
Beep 2 <should call a function which does the beep (parameter = 2)*/
Funny_text 5 3 <should call a function which writes funny text (parameters: 5,3) */
etc.
There is a large number of such functions.
Can you advice me of a good way to implment it (in c)?
Thanks,
I want to write a program which does different functions according to input.
I need to write it as general as possible.
Example:
input:
Beep 2 <should call a function which does the beep (parameter = 2)*/
Funny_text 5 3 <should call a function which writes funny text (parameters: 5,3) */
etc.
There is a large number of such functions.
Can you advice me of a good way to implment it (in c)?
Thanks,