Assuming that all the necessary standard headers ....

Q

using namespace std;

string s("abcdefghijk");
string::size_type I = s.find_first_of("a-c");
s = string(s, I, string::npos);
I = s.find_first_not_of("a-e");
cout << string(s, I, string::npos);

Assuming that all the necessary standard headers
have been included, what is the output produced
be the sample code above?
1 abcfghijk
2 abc
3 abcdefghijk
4 fghijk
5 bcdefghijk

✍: Guest

A
(This question has not been answered yet. If you know the answer, please share it in a comment below.)

2012-05-03, 3077👍, 0💬