Parameters
noneReturn Value
noneExample
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
|
This program repeats every line introduced by the user until a period character ('.') is introduced. Every newline character ('\n') triggers the repetition of the line and the clearing of the current string content.
Basic template member declaration
( basic_string<charT,traits,Allocator> ) |
See also
| string::erase | Erase characters from string (public member function) |
| string::resize | Resize string (public member function) |
| string::empty | Test if string is empty (public member function) |
