I don't see any break; statement in your switch, this is the way you wanted it?
And use cerr instead of cout, for your purpose it's better because it's not buffered, so in you case, you can't know if cout << "End"; executed or not, you just know that it didn't make it to the screen,
or you can use qDebug(),
but the best way to do this is a debugger.




Reply With Quote
Bookmarks