debugging

mmlkmlkmlk
Last edited on
Well, where is categoryFromFileIndex defined? You haven't included its definition within your post so my guess is that the compiler can't find it because it either doesn't exist or is not declared prior to it being called.
xcdscdcdsc
Last edited on
[okioikm
Last edited on
789709uj
Last edited on
can you post the quit() and perform(char) function?
hgvg kj k
Last edited on
dsscscdsc
Last edited on
Why use the functions if you don't know what they are or what they do?

and the very first link shows exactly what it does, what are you confused about?
http://msdn.microsoft.com/en-us/library/sf98bd4y%28VS.80%29.aspx
Last edited on
sadasdasds
Last edited on
are you including direct.h for the function.
And you had this error earlier, have still not answered this question:

magnificence7 wrote:
can you post the quit() and perform(char) function?


are these your functions or part of a library?
Last edited on
fffvfdvddvv
Last edited on
98569
Last edited on
444444
Last edited on
It's because quit( wants a character ); and you are calling it like this -> quit(); line 8

Also I don't understand what you mean about exit(0);
Last edited on
Am I right in assuming that main_menu() calls preform()?
I don't think the call to main_menu() is needed, as the function should return there anyway.
else main_menu() ; // not needed

you change the quit function like this:

1
2
3
4
5
6
7
8
9
void quit ()
{
   cout << "Are you sure you want to Quit the program? y/n: ";
   cin >> inp ;
   if (toupper(imp) == 'Y' )
      exit (0);

   // else will return void. 
}
Last edited on
Topic archived. No new replies allowed.