String Constants

A string constant consists of a sequence of characters or escape sequences enclosed in double quotes, like
"Hello world\n"
The type of a string constant is string.

String constants can be of any length (provided there is enough free memory available).

String constants can be concatenated by simply writing them next to each other to form larger strings:

string s = "Hello" " world\n";
It is also possible to extend a string constant over more than one line by escaping the newline character with a backslash (\):
string s = "Hello \

Index Copyright © 2005 CadSoft Computer GmbH