Using a case statement

I'm making a switch statement based off of the amount of numbers entered into a file and stored directly into a vector. How do I reference the case?
switch(?)
{
case '?'

The vector is named nums[]. I wanted the case statement to say "if count == 2, then ..., if count == 3, then ... etc." I felt an "if, else" was just a little too much. Or would that be the best?
What do you mean by "referencing the case"?
Generally, you use switch like this:

1
2
3
4
5
6
7
8
9
10
11
switch(count)
{
  case 2:
    //code
    break;
  case 3:
    //code
    break;
  default:
    //optional
}
Thank you.
Topic archived. No new replies allowed.