I need to create a function called writeNumber() using the switch statement. The input argument is ch of type char. Now, if ch is not a digit between '0' and '9', then the function returns the value 0 (I can use the isidigit() function). Oherwise, the function writes to the screen the correct English word of the digit charatcer followed by a newline charatcer and has a return value of 1. Once I write the function, I have to use the following driver to test my function:
[CODE]
#include <stdio.h>
#include <ctype>
#include(conio.h>

void main()
{
char c;
int num;

printf("hit any number key>>");
c=(char) getch();
printf("\nYou entered %c>>",c);

num=WriteNumber(c);
if (num==0)
printf("\nThat wasn't a number key\n");
}
[\CODE]
What is a driver function? Do I create my function and then place it below the last } and then try to compile it? I have no idea how to start this. if anybody wants to give me a hint, I would greatly appreciate it. I dont want you to write it for me, I just want to know where to begin. Do I just ignore the driver function and concentrate on my function? Thanks much for your help. I appreciate it... Tommy