toupper() or tolower() from <ctype.h> will also simplify expressions like
Code:
if (exitquestion == 'Y' || exitquestion == 'y')
to
Code:
if (tolower(exitquestion) == 'y')
or
Code:
if (toupper(exitquestion) == 'Y')
Code:
char exitquestion[1000];
fgets(exitquestion, 1000, stdin);
sizeof() never hurt anyone. (If it's an array and not a pointer.)
Code:
char exitquestion[1000];
fgets(exitquestion, sizeof(exitquestion), stdin);
or
Code:
fgets(exitquestion, sizeof exitquestion, stdin);
You should be aware that main() recursion (calling main()) is undefined in C++. It's also somewhat suspicious practise in C -- you should be able to code in such a way that you can use iteration (i.e., loops) instead.
exitfunction() should return void! Do away with the ancient, deprecated implicit int rule!
Code:
void exitfunction()
{
/* ... */
}
Also consider better indentation . . . .
[edit]Debatable . . . [/edit]