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

Changing The String PracticeChanging 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

Tarefa

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

Tudo estava claro?

Seção 3. Capítulo 5
toggle bottom row
course content

Conteúdo do Curso

C++ Data Types

Changing The String PracticeChanging 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

Tarefa

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

Tudo estava claro?

Seção 3. Capítulo 5
toggle bottom row
some-alt