这是我编程的第一周,这个项目明天到期。这是代码的重要部分:
char Keep_going;
cout << "What would you like to do? 'M' for menu or 'Q' for quit \n" ;
cin >> Keep_going ;
if ( Keep_going == M )
{
cout << "Returning to menu \n" ;
}
if ( Keep_going == Q )
{
choice = -1;
}
}while ( choice > 0 ) ;
system ("pause");
return 0;
我不断收到错误:
'M' 未在此范围内声明
'Q' 未在此范围内声明
有人可以帮我解决这个问题吗?