Counting problems

Ok heres the problem, I have a list of options in a menu.
One of the options can only be pressed ONCE!!
If pressed one more time it will show a message that they had press this option before.

1
2
3
4
5
6
7
8
9
10
if(int count == 0){
   //Information can only be selected once

   //return to main menu
   count ++
   menu();
}
else{
  //show a message they entered before
}


I know I'm doing it wrong!! Anyone care to explain how it's goonna work? Thx!!
You can have a flag (bool) for each option and check whether it has been used before.
Just a general remark: your first line doesn't make sense. You're checking the value of a variable you've just initialized, thus can't have a value yet. 'count' should already exist somewhere for it to have meaning in that context.
Topic archived. No new replies allowed.