Learn C++ STL

Lesson 8 of 9 · string: Text That Knows Its Own Length

Module 3 · string: Text That Knows Its Own Length

Cheat Sheet: string on One Page

ProReading

This page is the module on one sheet, for the moment before a contest or an interview. Every line here was taught, run or measured in lessons 01 to 06; nothing is new. Print it, or keep it open beside the editor.

Checking what this lesson needs for you…

What is inside Cheat Sheet: string on One Page

  1. Making a string
  2. Every operation and its cost
  3. Numbers in and out of text
  4. Reading text, and building it
  5. The five idioms
  6. The npos rule and the bytes rule
  7. string against its neighbours
  8. The three traps

Module test

Ten questions on this module. Pass at 70%, and you can take it as many times as you like.

Take the module test