> case '1'
Try
case 1
Plus a couple of other syntax errors, which I assume because you typed the code rather than copy/pasted.
> case '1'
Try
case 1
Plus a couple of other syntax errors, which I assume because you typed the code rather than copy/pasted.
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
If at first you don't succeed, try writing your phone number on the exam paper.