Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Changing The String Practice | Text Data Type
C++ Data Types
course content

Course Content

C++ Data Types

C++ Data Types

1. Introduction
2. Numerical Data Types
3. Text Data Type
4. Other Data Types and Concepts

bookChanging 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!.

Switch to desktopSwitch to desktop for real-world practiceContinue from where you are using one of the options below
Everything was clear?

How can we improve it?

Thanks for your feedback!

Section 3. Chapter 5
toggle bottom row

bookChanging 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!.

Switch to desktopSwitch to desktop for real-world practiceContinue from where you are using one of the options below
Everything was clear?

How can we improve it?

Thanks for your feedback!

Section 3. Chapter 5
toggle bottom row

bookChanging 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!.

Switch to desktopSwitch to desktop for real-world practiceContinue from where you are using one of the options below
Everything was clear?

How can we improve it?

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!.

Switch to desktopSwitch to desktop for real-world practiceContinue from where you are using one of the options below
Section 3. Chapter 5
Switch to desktopSwitch to desktop for real-world practiceContinue from where you are using one of the options below
some-alt