Home Forums C Programming standard I/O Reply To: standard I/O


What I would do is read in all characters until newline when I found the appropriate character:

char ch;

if ( ch == characterYourLookingFor )
      cin >> ch;
      while ( ch != 'n' )
         cin >> ch;

// the next character you read will be from the front of the next line…