Chapter 3
Text

There’s no doubt you will need to show text on a screen eventually. Esenthel provides the class Str to remember characters, words and even entire paragraphs.

There are several ways to put text into a Str:

 
Str text(”hello world”); // use the constructor 
text  = ”hello ”; // use assignment 
text += ”world” ; // use the addition assignment operator  

Note
The text between quotes is officially called a ‘string literal’. When you don’t have to do anything with a string but drawing it on screen, you can often just use a string literal.