[an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive]
[an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive]![]() |
![]() |
![]() |
|||||||||||||||||||||||||
|
|||||||||||||||||||||||||||
![]() |
![]() |
![]() |
BS 3. 1. printing p. 620: "It has been said that C's greatest strenght is it ability to read a character and decide to do nothing with it -- and to do this fast"! sslug@sslug wrote: > > The extraction opererator does not remove any trailing whitespace! > Thus a trailing '\n' or sic. '\0' et al would still be pending. Hvordan fjerner jeg så den ? istream& eatwhite(istream& is) { char c; while (is.get(c)) { if (!isspace(c)) { is.putback(c); break; } } return is; } Bjarnes forslag! Mvh Nils Åke Ljuggren
![]() |
![]() |
![]() |
||||||||||||
|
||||||||||||||
![]() | ||||||||||||||
|
||||||||||||||
![]() |
![]() |
![]() |