need some questions answered which i cannot get

Good day
I am trying answer some questions but despite long hours of researching i cannot find them so i am hoping someone here can help me.

I have to find the maximum parameters in each of these 4 functions.

1
2
3
4
getline
substr
find
erase


If anyone could help me it would be great
Last edited on
@ wildblue I did look at those pages but none of the number of parameters given are the same as the answers i have to choose from. Thats why i was wondering if i had missed something
is one of the answers to choose from for getline 2 or 3 give us the answers you have to choose from please
Last edited on
for all of them the answers to choose from are the same (given below)

1. 0
2. 1
3. 2
4. 3
What number of parameters are you seeing for getline, just to take the first one, in what you've looked up?
The question is a bit underspecified.

The interface changes with time, and the full names of the APIs are not given.
There are at most 3 arguments to std::getline().
There are at most 2 arguments to whatever std::xxx::substr for whatever valid xxx as of now. There is no std::substr().
There are at most 3 arguments to std::find(), until C++17 when std::find() gains a fourth argument.
There are at most 2 arguments to std::xxx::erase() for whatever valid xxx as of now. There is no std::erase().

The answers may be different pre-C++11: I didn't check.

http://en.cppreference.com/w/cpp/string/basic_string/getline
http://en.cppreference.com/mwiki/index.php?title=Special%3ASearch&search=substr&button=
http://en.cppreference.com/w/cpp/algorithm/find
http://en.cppreference.com/mwiki/index.php?title=Special%3ASearch&search=erase
Last edited on
Topic archived. No new replies allowed.