"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 with the
+ operator 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 \
world\n";
Index | Copyright © 1999 CadSoft Computer GmbH |