C++

Given string strVar on one line, integer idxStart on a second line, and integer choiceLen on a third line, replace choiceLen characters with "1234", starting at index idxStart.

Ex: If the input is:

Fuzzy bear
3
4

then the output is:

Fuz1234ear

Note: Using a pre-defined string function, the solution can be just one line of code.

C Given string strVar on one line integer idxStart on a second line and integer choiceLen on a third line replace choiceLen characters with 1234 starting at ind class=