Hi sorry to bother, you, I cant find this information on your boards, all I would like to know is, how would I do an if statement, so that only numbers are accepted and no other characters: so for example only a number is enterd like 98, instead of a character like t, I tried a number of times, but i keep getting an infinate (i spell it right?) loop.
Its something I am doing for my own pleasure thanks.

Code:
while ( bankBalance >= 1 ){
		cout << "Please enter a wager, or enter -1 to quit: " <<endl;
		cin >>wager;
		if (wager == -1)
			return 0;
		if (wager > bankBalance){
			cout << "That wager is higher then what you got in the bank" << endl <<endl;;
			continue;}
		cout << endl; 
	
		cout << "Ok here we go!" <<endl <<endl;
		bankBalance = onegame();
		
		cout << "Your new Bank Balance is " << bankBalance << " pounds" << endl << endl;
			
	}

	cout << "Sorry, your broke, Game Over" << endl;
ps hope i got them tabs right.
This is so fun