For example if my string is "^^^^^^Big^^^Bob", i want to turn it in to "Big^Bob"
CHOCHOCHO 0 Newbie Poster
Recommended Answers
Jump to PostFirst, you can use the standard function
std::unique
(from<algorithm>
header) to remove any consecutive spaces by using this predicate (requires header<locale>
for thestd::isspace
function):
All 4 Replies
mike_2000_17 2,669 21st Century Viking Team Colleague Featured Poster
Lucaci Andrew 140 Za s|n
Gonbe 32 Newbie Poster
Lucaci Andrew 140 Za s|n
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.