debugging

Feb 4, 2010 at 5:08pm
mmlkmlkmlk
Last edited on Feb 21, 2010 at 9:03am
Feb 4, 2010 at 9:03pm
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.
Feb 5, 2010 at 9:13am
xcdscdcdsc
Last edited on Feb 21, 2010 at 9:04am
Feb 5, 2010 at 7:25pm
[okioikm
Last edited on Feb 21, 2010 at 9:03am
Feb 6, 2010 at 1:58pm
789709uj
Last edited on Feb 21, 2010 at 9:03am
Feb 6, 2010 at 2:52pm
can you post the quit() and perform(char) function?
Feb 6, 2010 at 3:04pm
hgvg kj k
Last edited on Feb 21, 2010 at 9:03am
Feb 6, 2010 at 3:13pm
Feb 6, 2010 at 3:49pm
dsscscdsc
Last edited on Feb 21, 2010 at 9:04am
Feb 6, 2010 at 4:00pm
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 Feb 6, 2010 at 4:02pm
Feb 6, 2010 at 4:09pm
sadasdasds
Last edited on Feb 21, 2010 at 9:04am
Feb 6, 2010 at 4:13pm
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 Feb 6, 2010 at 4:15pm
Feb 6, 2010 at 5:43pm
fffvfdvddvv
Last edited on Feb 21, 2010 at 9:04am
Feb 7, 2010 at 3:36pm
98569
Last edited on Feb 21, 2010 at 9:05am
Feb 7, 2010 at 6:31pm
444444
Last edited on Feb 21, 2010 at 9:04am
Feb 7, 2010 at 11:39pm
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 Feb 7, 2010 at 11:42pm
Feb 7, 2010 at 11:41pm
Am I right in assuming that main_menu() calls preform()?
Feb 8, 2010 at 12:19am
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 Feb 8, 2010 at 12:25am
Topic archived. No new replies allowed.