#include <iostream>

using namespace std;

class test
    int bla(int &c);

int test:: bla(int &c)
    return c;

int main()
   int c=10;
   test student;
   int b=1;
       case '1': cout<<student.bla(c); break;
   return 0;

I would like to change the variable c within the switch/case-lines, but it doesn't work, probably because of a problem with the scope.
Maybe someone could help me to solve this problem? Many thanks.

I'm guessing that ..

//// Instead of ..
// case '1': cout<<student.bla(c); break;

// .. you probably want to have ..
case 1: cout<<student.bla(c); break;