CS Ch.2 Section 2.2 and 2.3

¡Supera tus tareas y exámenes ahora con Quizwiz!

\\

Backslash escape sequence, causes a backslash to be printed

\b

Backspace escape sequence, causes the cursor to backup or move left one position

\t

Horizontal tab escape sequence, causes a cursor to skip to tab stop.

\r

Return escape sequence, Causes the cursor to go to the beginning of the current line, not the next line.

\'

Single quote escape sequence, causes a single quotation mark to be printed

console output

The simplest screen output that a program can display. Plain text.

<< endl

a stream manipulator to end a line.

Preprocessor Directive

commands to the preprocessor which runs prior to the compiler. Does not require semi colons because they are not part C++ statements.

#include

must always contain the name of a file to call, and the preprocessor will enter the containment of that file in the program wherever this statement is encountered.

#include <iostream>

must be included in any program that uses the cout object.

\n

newlline escape sequence creates a new line

iostream

not a C++ statement, but a preprocessor directive that

input-output stream library

when fetched will include cout and cin commands that are not part of the core C++ language.

stream object

works with streams of data... stream of characters sent to cout

stream insertion operator

<< send the string on the right to cout on the left, can be used multiple times to send multiple strings and will display on one line and without space unless specified.

\a

Alarm escape sequence, causes the computer to beep

\"

Double quote escape sequence, causes a double quotation mark to be printed.


Conjuntos de estudio relacionados

Economic Concepts and Financial Reporting

View Set

About Science -- Conceptual Physics

View Set

Nursing Research and Theory Ch.2

View Set

RM: Citi Modules, CITI Modules 9-17, CITI Certification, CITI quiz

View Set

Chapter 11 Metal Casting Process

View Set

Pharmacology, Exam 2: ANS and CV

View Set