hello,

can some one pls tell me if we can ignore strings in a sentence in c++??
Eg:
hello , how are you?
am fine , how are you?
when will you get to the party?

If this is a mail then how do i ignore the word "you" in all the lines ???
is this possible ??


pls help me
this is been bugging me all day
thankx in advance

Recommended Answers

All 3 Replies

I would doubt there is a function in the standard that will do this, but I also don't think it's that hard to do it yourself.

I think what you will probably want to do is remove the word(s) from the strings. If you use c++ and std::string, use string's find method to locate the word then use its substring method to remove it.

You can use replace function.

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.