Search⌘ K
AI Features

Work with the Text

Explore how to use the string data type in C++ to store, update, and combine text with numbers. Learn string concatenation and how to produce personalized output, expanding your programming skills beyond numbers.

So far, we’ve worked with numbers, but C++ can handle text too. In this lesson, you’ll learn how to use string to store and manipulate sentences and words.

Goal

You’ll aim to:

  • Use string to hold text.

  • Combine strings with other ...