Given a string, an integer position, and an integer length, all on separate lines, output the substring from that position of th
at length.
Ex: If the input is:
Fuzzy bear
3
4
the output is:
zy b
Note: Using a pre-defined string function, the solution can be just one line of code. It does not have to be one line though it can be a lot.
Code:
#include
#include
using namespace std;
int main() {
string workStr;
int indexBegin;
int len;
getline(cin, workStr);
cin >> indexBegin;
cin >> len;
/* Your code goes here */
return 0;
}
1 answer:
You might be interested in
<span>Exit effects determine how slide elements disappear. </span>
<em>*Assuming JavaScript</em>
Answer:
function send_signal() {}
send_signal() // calls the function
Explanation:
Answer:
employ ability assessments and the ability to perform tasks
Explanation:
Answer:
google can find u some discord servers
Explanation: