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
C++ String Edit Function
C++ String Edit Function
Aug 24, 2011 at 2:51pm UTC
Muhasaresa
(74)
Hello everyone :D,
I am making a console app in Dev C++ and I was wondering if there is a function that can edit a string by inserting a space after a full stop. For example:
hello.everyone.
goes to
hello. everyone.
(with space after dot)
I would appreciate any help :)
Thanks,
Muhasaresa
Last edited on
Aug 24, 2011 at 4:27pm UTC
Aug 24, 2011 at 3:29pm UTC
HenriK
(136)
Try something like this:
1
2
string word =
"hello.everyone."
; word +=
' '
;
Last edited on
Aug 24, 2011 at 3:30pm UTC
Aug 24, 2011 at 4:12pm UTC
Muhasaresa
(74)
Thanks for the help , but can this operation be done after each full stop within the string?
Thanks,
Muhasaresa
Topic archived. No new replies allowed.