Hi Guys.
When i use a while loop to scan in characters for instance
what i basically want to do is check the character 1 ahead but then reclaim it back instead of losing that character.Code:while ( (ch=getchar()) != EOF ) { if ( ch == '\n' ) { do this; if ( (ch=getchar()) == '\n' ) { do that; } } }
How can i do this?
Im not after an array implementation.
Cheers!