Im usng cin, and trying to recogninze a newline character like this:

Code:
while( !cin.eof() ) {
   cin >> row >> col;
   if(col=='\n') {
      occupied = row;
      display_array(m1);
      init_array(m1);
   }
}
Is this possible? or would I have to use something like getline()?