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
How to append strings to the front of ot
How to append strings to the front of other strings?
Apr 7, 2013 at 6:15pm UTC
DarthBrogan
(4)
I am programming a translator, and I have it so that it detects words with spaces both in front of and behind them, so I did "string.append(space);" where space equals " ". That added a space to the end, but I still need a space added to the front.
Apr 7, 2013 at 6:32pm UTC
Disch
(13742)
yourstring =
" "
+ yourstring +
" "
;
Topic archived. No new replies allowed.