Skip to content

Latest commit

 

History

History
1 lines (1 loc) · 260 Bytes

6.48.md

File metadata and controls

1 lines (1 loc) · 260 Bytes

The loop are used to keep reading string from the input until sought found. It is a bad idea to use assert check whether cin is in an error state. Because when the program compiled with NDEBUG preprocessor variable, the statement would not be excuted.