Strings are enclosed in double quote characters ("). To include a double quote character in a string, type it twice ("") inside the larger string. Thus "Hello" is a string, as is "She said, ""How are you?""". An empty string is simply written as "".
We'll find out later how to represent control characters, but for now we'll note that C-like escape characters do not work. You can do the same thing in Ada but in a different way, and because of the way Ada works they aren't used as often.
Given the following items:
Which of the following is true?
Go back to the previous section | Skip to the next section | Go up to lesson 3 outline |
---|
David A. Wheeler (dwheeler@ida.org)
The master copy of this file is at "http://www.adahome.com/Tutorials/Lovelace/s3sf.htm".