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

Зміст курсу

C++ Data Types

C++ Data Types

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

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

Завдання

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

Завдання

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

Все було зрозуміло?

Секція 3. Розділ 5
toggle bottom row

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

Завдання

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

Завдання

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

Все було зрозуміло?

Секція 3. Розділ 5
toggle bottom row

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

Завдання

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

Завдання

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

Все було зрозуміло?

Here are the methods you learned in the previous chapter. You will need some of them to complete a task.

append

concatenate

insert

replace

Завдання

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

Секція 3. Розділ 5
Перейдіть на комп'ютер для реальної практикиПродовжуйте з того місця, де ви зупинились, використовуючи один з наведених нижче варіантів
We're sorry to hear that something went wrong. What happened?
some-alt