Course Content
C++ Data Types
C++ Data Types
Changing The String Practice
Here are the methods you learned in the previous chapter. You will need some of them to complete a task.
append
concatenate
insert
replace
Task
Change the string "You should not pass"
to "You shall not pass!"
using the methods you learned from a previous chapter.
- Replace the
"should"
with"shall"
. - Add a
"!"
to the end of a string.
Your program should output You shall not pass!
.
Thanks for your feedback!
Changing The String Practice
Here are the methods you learned in the previous chapter. You will need some of them to complete a task.
append
concatenate
insert
replace
Task
Change the string "You should not pass"
to "You shall not pass!"
using the methods you learned from a previous chapter.
- Replace the
"should"
with"shall"
. - Add a
"!"
to the end of a string.
Your program should output You shall not pass!
.
Thanks for your feedback!
Changing The String Practice
Here are the methods you learned in the previous chapter. You will need some of them to complete a task.
append
concatenate
insert
replace
Task
Change the string "You should not pass"
to "You shall not pass!"
using the methods you learned from a previous chapter.
- Replace the
"should"
with"shall"
. - Add a
"!"
to the end of a string.
Your program should output You shall not pass!
.
Thanks for your feedback!
Here are the methods you learned in the previous chapter. You will need some of them to complete a task.
append
concatenate
insert
replace
Task
Change the string "You should not pass"
to "You shall not pass!"
using the methods you learned from a previous chapter.
- Replace the
"should"
with"shall"
. - Add a
"!"
to the end of a string.
Your program should output You shall not pass!
.