hello...try this

  1. suppose i input a character. the compiler cannot store character as integer. ERROR

i stored in char a variable input and converted it into integer using atoi(). it returns 0 for all character values. hence no need to use isdigit().
[CODE]

include
include

using namespace std ;
void main()
{
char input[2] ;
int user_number ;
cout <<"Please pick a number between 1 and 5" <<endl <<endl ;

cin >> input ;
while( user_number = atoi ( input ) , user_number<1 || user_number >5 )
{
cout <<"I said a number between 1 and 5! =(" <<endl ;
cin >> input ;
}
cout <<"You choose "<< user_number ;
system ("pause") ;
}
[/CODE]

i left u a bug here. it converts values like 3.75 to integer(3) and program runs. try and solve and avoid isdigit(). just stick to easy statements... i feel they are quite reliable..