C++ - Basic Concepts

Ace your homework & exams now with Quizwiz!

cout is used in combination with the insertion operator. Write the insertion operator as

<< to insert the data that comes after it into the stream that comes before.

What was C++ derived from?

C++ was derived from C, and is largely based on it. It is a General purpose programming language.

A block

is a set of logically connected statements, surrounded by opening and closing curly braces.

In our code, the line using namespace std;

tells the compiler to use the std (standard) namespace.

In C++, the semicolon is used

terminate a statement. Each statement must end with a semicolon. It indicates the end of one logical expression.

Curly brackets { } indicate

the beginning and end of a function, which can also be called the function's body. The information inside the brackets indicates what the function does when executed.

In most program environments, the standard default output destination is the screen. In C++, cout is

the stream object used to access it.

In C++, streams are used

to perform input and output operations.


Related study sets

Health Assessment Chapter 22 Prep-U Neurological Assessment, Neurological Assessment PrepU, Neurological Assessment (PrepU), Chapter 25: Assessing Neurologic System, Chapter 25: Assessing Neurologic System, Assessment Ch 25 Neuro System PrepU, PrepU...

View Set

Computer Components (Basic) 1 of 2

View Set

Chapter 7: Benign Disorders of the Female Reproductive Tract

View Set

Thyroid, SAIDH, Diabetes, Graves', Cushing's, Addison's (1 of 2) NCLEX

View Set

Human A&P 2 Heart/Blood Vessels Practical 3

View Set