So, here's my problem, I take input, it's necessary that the input is an int

when you try to put in a char through cin>> the while loop doesn't evaluate correctly and an endless loop starts

the input is being returned through a seperate function

if I can tell whether or not cin>> is returning an int within my function, then I can set up protocols against the endless loop

trouble is I have no clue how to find out what type of variable is coming in through cin

any tips?