bool validateCourse ( int courseNum )
{
switch ( courseNum )
{
case 4587:
case 4581:
case 9696:
case 4590:
case 4580:
case 4599:
case 4583:
case 8997:
return true;
case default:
return fasle;
}
}
I need it so if the user enters anything but these course numbers it will return false. When I compile it says there is something wrong with the default. Can anyone help?