The following code yields an error message:
Code:
// temp1.cpp
 
#include <iostream>
using std::cout;
 
void myM(char *);
 
int main()
{
   myM("june");
   return 0;
}
void myM(char *month)
{
   switch(month)
   {
      case 'june':
         cout << "\nJune";
   }
}

after compilation i recieve an error message saying:
error e2383 switch selection expression must be of integral type in function myM(char *)
can anyone tell me how to change the code so it doesnt yield an error message ?
Thanks !