the \n character wont be picked up by the cin and the only way i can think of to check this would be to concurrently increment a pointer to the character you are on. this would get pretty ugly really fast though... is there any reason you dont want to just use strings and the atoi function?

------------------
--obligatory pc specs--
Abit KT7 RAID
700 MHz Tbird
256 MB PC133 cheese
gainward geforce 3