subject

Given a string, an integer position, and an integer length, all on separate lines, output the substring from that position of that 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;

}

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 04:00
Chloe is building a kiosk-based excel application. she wants to make some modifications to the screen elements in order to keep users from being distracted by parts of the application that are irrelevant to her application. she turns to henry for guidance as she knows he built a similar solution earlier this year.chloe has decided to hide the worksheet gridlines and the vertical scroll bar. what does henry tell her to use to do this? a) screen elements dialog boxb) display options dialog boxc) customization dialog boxd) excel options dialog box
Answers: 2
question
Computers and Technology, 22.06.2019 10:30
Think about a recent customer service experience - either positive or negative. write a brief summary of that experience. now think about those four characteristics we look for in customer service representatives. how did the representative in your example stack up? write down your answer and give specific examples.
Answers: 1
question
Computers and Technology, 22.06.2019 11:30
To hide gridline when you display or print a worksheet
Answers: 1
question
Computers and Technology, 22.06.2019 20:00
What is the term for water wave that is created by an underwater earthquake
Answers: 1
You know the right answer?
Given a string, an integer position, and an integer length, all on separate lines, output the substr...
Questions
question
English, 18.12.2020 19:50
question
Mathematics, 18.12.2020 19:50
question
Mathematics, 18.12.2020 19:50
Questions on the website: 13722360