my default in my switch case statement doesn't seem to work, so if i type in a non integer, it will exit, and follow case 0. there are no signs of the default working.. how to solve, i've tried alot! :(
bool isFinished = false;
while(!isFinished) {
.......
....
....
int input = 0;
cin >> input;
cout << "--------------------------------" << endl;
switch(input) {
case 1 : doPolygonPointEntry(); break;
case 2 : doslopeIncrementEntry(); break;
case 3 : doParticleSizeIncrementEntry(); break;
case 4 : doComputeDistancesEntry();break;
case 5 : doComputeWettedPerimeter();break;
case 6 : doComputeAreaEntry();break;
case 7 : doComputeHRadius(); break;
case 8 : doComputeFlowDischarge(); break;
case 9 : doSeeAllValues (); break;
default : cout << "Unknown option" << endl; break;
case 0 : cout << "Thanks. Bye Bye. " << endl; isFinished = true;
}