i made this proggy just to stuff around with looping mainly, but the thing is it loops but doesn't clear the page, how do you do this?
Code:#include <iostream> using namespace std; int main() { int x = 0; do { int input; cout<<"input a number\n"; cin>> input; switch ( input ) { case 1: cout<<"case 1\n"; cin.get(); break; case 2: cout<<"case 2\n"; cin.get(); break; case 3: cout<<"case 3\n"; cin.get(); break; default: cout<<"default\n"; cin.get(); break; } cin.get(); } while ( x == 0 ); }