cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
General C++ Programming
Print newline for anything but numbers
Print newline for anything but numbers
Mar 15, 2019 at 9:16pm UTC
darkknight914
(37)
How to write an if statement that prints a new line for any line in a file that does not start with a number?
Mar 15, 2019 at 9:38pm UTC
lastchance
(6980)
if
( !isdigit( str[0] ) ) cout <<
'\n'
;
Topic archived. No new replies allowed.