C++ - Basic Concepts

Lakukan tugas rumah & ujian kamu dengan baik sekarang menggunakan 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.


Set pelajaran terkait

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

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

View Set

#03 ¿Cuál es tu color favorito? NTMS Spanish Czora Morgan

View Set