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
Manipulating 2D arrays and C-string?
Manipulating 2D arrays and C-string?
Nov 21, 2012 at 9:01pm UTC
phymafia123
(9)
I'm writing a program that output a string to the string a certain way.
The string: Once upon a time
The output has to be:
Once
upon
a
time
When it reads a space it paste to a new line
Last edited on
Nov 22, 2012 at 6:30am UTC
Nov 21, 2012 at 11:12pm UTC
toum
(353)
Without the complete code it's hard to tell.
Why not simply replace every space character by a newline character ?
Topic archived. No new replies allowed.