program to count the number of characters in any string excluding the blank space.
Bhawana Pant 0 Newbie Poster
Recommended Answers
Jump to PostThat's nice. Is there a question you'd like to ask now?
Jump to Postreplace (mystring.begin(), mystring.end(), " ", ""); cout << mystring.length() << endl; // what?
All 8 Replies
John A 1,896 Vampirical Lurker Team Colleague
Agni 370 Practically a Master Poster Featured Poster
its.romi -2 Newbie Poster
jtfrench 0 Newbie Poster
cikara21 37 Posting Whiz
Comatose 290 Taboo Programmer Team Colleague
FrancisC07 0 Light Poster
John A 1,896 Vampirical Lurker Team Colleague
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.