Some characters do not have their own symbol and must be referenced by an escape sequence

Some characters do not have their own symbol and must be referenced by an escape sequence

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
Some characters do not have their own symbol and must be referenced by an escape sequence. Some escape sequences are: '\\' -- backslash '\'' -- single quotation mark '\"' -- double quotation mark '\b' -- backspace '\n' -- new line '\r' -- carriage return '\t' -- tab A string is a sequence of characters ending in the null character (whose escape sequence is '\0' ). As a beginner, you can usually ignore this definition because strings are usually simply written as constants between double quotes, such as: "florsheim" or "Enter the quantity of shipments:\t" More Data Types There are more primitive data types in C++ which are variation on the ones described above. They are as follows: unsigned char -- takes non-negative values twice as high as normal chars. unsigned int -- similarly, takes on non-negative values up to twice the highest value of normal ints. long -- or long int , are like int s, but can take on much larger values. unsigned long int
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.
Ask a homework question - tutors are online