Universal search across Courses, Lessons, Skills, Projects, Challenges, Competitions, Jobs, Internships, and Users
•
1
2
3
4
5
6
7
8
9
10
Introduction & Output•Lesson 3
C++ Strings
Unlike C where you had to manage char arrays and null terminators manually, C++ has the string class. You can easily concatenate strings with the + operator and find their length with .length().
> **Key Takeaway:** C++ provides a first-class string type for working with text easily.
Python 3.11
•
Interactive Challenge
+50 XP
Challenge Objective
C++ provides a first-class string type for working with text easily.
solution.py
UTF-84 SpacesAuto-saved
cpython3.11:~/workspace
CPython 3.11.8 (WASM)
$python3 -u solution.py
Click "Compile & Run" (or press Ctrl + Enter) to compile AST, verify bytecode, and execute the solution.