The above solution is not complete. It does not take into account when you have statement like

Code:
cout<<"/* Please enter your choice */"<<endl;