Table of Contents
C++ Glossary Getting Started
Return to CPP Glossary, C++ DevOps, C++ books, C++ courses, C++ topics, C++
These terms below are the most fundamental programming terms. They apply to other C++ like languages such a Java, C#, Scala, Kotlin, Objective-C, Swift and in many ways to Golang, JavaScript and TypeScript as well.
# and Symbols
- () operator - “Call operator. A pair of parentheses “()” following a function name. The operator causes a function to be invoked. Arguments to the function may be passed inside the parentheses.” (CppPrmLp 2012) and (CppPrmLp 2012)
- ++ operator - “Increment operator. Adds 1 to the operand; ++i is equivalent to i = i + 1.” (CppPrmLp 2012)
- += operator - “Compound assignment operator that adds the right-hand operand to the left and stores the result in the left-hand operand; a += b is equivalent to a = a + b.” (CppPrmLp 2012)
- . operator - “Dot operator. Left-hand operand must be an object of class type and the right-hand operand must be the name of a member of that object. The operator yields the named member of the given object.” (CppPrmLp 2012)
- operator - “Scope operator. Among other uses, the scope operator is used to access names in a namespace. For example, std::cout denotes the name cout from the namespace std.” (CppPrmLp 2012)
- = operator - “Assigns the value of the right-hand operand to the object denoted by the left-hand operand.” (CppPrmLp 2012)
- -- operator - “Decrement operator. Subtracts 1 from the operand; –i is equivalent to i = i - 1.” (CppPrmLp 2012)
- << operator - “Output operator. Writes the right-hand operand to the output stream indicated by the left-hand operand: cout « “hi” writes hi to the standard output. Output operations can be chained together: cout « “hi” « “bye” writes hibye.” (CppPrmLp 2012)
- >> operator - “Input operator. Reads from the input stream specified by the left-hand operand into the right-hand operand: cin » i reads the next value on the standard input into i. Input operations can be chained together: cin » i » j reads first into i and then into j. (CppPrmLp 2012)
- == operator - “The equality operator. Tests whether the left-hand operand is equal to the right-hand operand.” (CppPrmLp 2012)
- != operator - “The inequality operator. Tests whether the left-hand operand is not equal to the right-hand operand.” (CppPrmLp 2012)
- <= operator - “The less-than-or-equal operator. Tests whether the left-hand operand is less than or equal to the right-hand operand.” (CppPrmLp 2012)
- < operator - “The less-than operator. Tests whether the left-hand operand is less than the right-hand operand.” (CppPrmLp 2012)
- >= operator - ”Greater-than-or-equal operator. Tests whether the left-hand operand is greater than or equal to the right-hand operand.“ (CppPrmLp 2012)
- > operator - ”Greater-than operator. Tests whether the left-hand operand is greater than the right-hand operand.“ (CppPrmLp 2012)
A
- assignment - ”Obliterates an object’s current value and replaces that value by a new one.“ (CppPrmLp 2012)
B
- buffer - “A region of storage used to hold data. IO facilities often store input (or output) in a buffer and read or write the buffer independently from actions in the program. Output buffers can be explicitly flushed to force the buffer to be written. By default, reading cin flushes cout; cout is also flushed when the program ends normally.” (CppPrmLp 2012)
C
- cerr - ”ostream object tied to the standard error, which often writes to the same device as the standard output. By default, writes to cerr are not buffered. Usually used for error messages or other output that is not part of the normal logic of the program.“ (CppPrmLp 2012)
- class - ”Facility for defining our own data structures together with associated operations. The class is one of the most fundamental features in C++. Library types, such as istream and ostream, are classes.“ (CppPrmLp 2012)
- clog - ”ostream object tied to the standard error. By default, writes to clog are buffered. Usually used to report information about program execution to a log file.“ (CppPrmLp 2012)
- comments - ”Program text that is ignored by the compiler. C++ has two kinds of comments: single-line comments and paired. Single-line comments start with a //. Everything from the // to the end of the line is a comment. Paired comments begin with a /* and include all text up to the next */.“ (CppPrmLp 2012)
- condition - “An expression that is evaluated as true or false. A value of zero is false; any other value yields true.” (CppPrmLp 2012)
- cout - ”ostream object used to write to the standard output. Ordinarily used to write the output of a program.“ (CppPrmLp 2012)
- curly brace - ”Curly braces delimit blocks. An open curly ({) starts a code block; a close curly (}) ends one.“ (CppPrmLp 2012)
D
E
- end-of-file - ”System-specific marker that indicates that there is no more input in a file.“ (CppPrmLp 2012)
- expression - “The smallest unit of computation. An expression consists of one or more operands and usually one or more operators. Expressions are evaluated to produce a result. For example, assuming i and j are ints, then i + j is an expression and yields the sum of the two int values.” (CppPrmLp 2012)
F
- for statement - ”Iteration statement that provides iterative execution. Often used to repeat a calculation a fixed number of times.“ (CppPrmLp 2012)
H
- header - ”Mechanism whereby the definitions of a class or other names are made available to multiple programs. A program uses a header through a include directive.“ (CppPrmLp 2012)
I
- if statement - ”Conditional execution based on the value of a specified condition. If the condition is true, the if body is executed. If the condition is false, the else body is executed if there is one.“ (CppPrmLp 2012)
- initialize - “Give an object a value at the same time that it is created (see object creation).” (CppPrmLp 2012)
- iostream - ”Header that provides the library types for stream-oriented input and output.“ (CppPrmLp 2012)
L
M
- main Function - ”called by the operating system to execute a C++ program. Each program must have one and only one function named main.“ (CppPrmLp 2012)
- manipulator - ”Object, such as endl, that when read or written “manipulates” the stream itself.“ (CppPrmLp 2012)
- member function - ”Operation defined by a class. Member functions ordinarily are called to operate on a specific object.“ (CppPrmLp 2012)
N
- namespace - ”Mechanism for putting names defined by a library into a single place. Namespaces help avoid inadvertent name clashes. The names defined by the C++ library are in the namespace std.“ (CppPrmLp 2012)
O
P
- parameter list - “Part of the definition of a function. Possibly empty list that specifies what arguments can be used to call the function.” (CppPrmLp 2012)
R
S
- standard error - ”Output stream used for error reporting. Ordinarily, the standard output and the standard error are tied to the window in which the program is executed.“ (CppPrmLp 2012)
- standard input - ”Input stream usually associated with the window in which the program executes.“ (CppPrmLp 2012)
- standard library - ”Collection of types and collection of functions that every C++ compiler must support. The library provides the types that support IO. C++ programmers tend to talk about “the library,” meaning the entire standard library. They also tend to refer to particular parts of the library by referring to a library type, such as the “iostream library,” meaning the part of the standard library that defines the IO classes.“ (CppPrmLp 2012)
- standard output - ”Output stream usually associated with the window in which the program executes.“ (CppPrmLp 2012)
- statement - “A part of a program that specifies an action to take place when the program is executed. An expression followed by a semicolon is a statement; other kinds of statements include code blocks and if, for, and while statements, all of which contain other statements within themselves.” (CppPrmLp 2012)
- std - ”Name of the namespace used by the standard library. cout indicates that we’re using the name cout defined in the std namespace.“ (CppPrmLp 2012)
- string literal - ”Sequence of zero or more characters enclosed in double quotes (“a string literal”).“ It is ”literally a string“ (CppPrmLp 2012)
U
- uninitialized variable - ”Variable that is not given an initial value. Variables of class type for which no initial value is specified are initialized as specified by the class definition. Variables of built-in type defined inside a function are uninitialized unless explicitly initialized. It is an error to try to use the value of an uninitialized variable. Uninitialized variables are a rich source of bugs.“ (CppPrmLp 2012)
V
W
- while statement - ”Iteration statement that provides iterative execution so long as a specified condition is true. The body is executed zero or more times, depending on the truth value of the condition.“ (CppPrmLp 2012)
Fair Use Sources
C++: C++ Fundamentals, C++ Inventor - C++ Language Designer: Bjarne Stroustrup in 1985; C++ Keywords, C++ Built-In Data Types, C++ Data Structures (CPP Containers) - C++ Algorithms, C++ Syntax, C++ OOP - C++ Design Patterns, Clean C++ - C++ Style Guide, C++ Best Practices ( C++ Core Guidelines (CG)) - C++ BDD, C++ Standards ( C++ 23, C++ 20, C++ 17, C++ 14, C++ 11, C++ 03, C++ 98), Bjarne Stroustrup's C++ Glossary, CppReference.com, CPlusPlus.com, ISOcpp.org, C++ Compilers (Compiler Explorer, MinGW), C++ IDEs, C++ Development Tools, C++ Linter, C++ Debugging, C++ Modules ( C++20), C++ Packages, C++ Package Manager ( Conan - the C/C++ Package Manager), C++ Standard Library, C++ Libraries, C++ Frameworks, C++ DevOps - C++ SRE, C++ CI/CD ( C++ Build Pipeline), C++ Data Science - C++ DataOps, C++ Machine Learning, C++ Deep Learning, Functional C++, C++ Concurrency, C++ History, C++ Topics, C++ Bibliography, Manning C++ Series, C++ Courses, CppCon, C++ Research, C++ GitHub, Written in C++, C++ Popularity, C++ Awesome , C++ Versions. (navbar_cplusplus – see also navbar_cpp_containers, navbar_cppcon, navbar_cpp_core_guidelines, navbar_cpp23, navbar_cpp20, navbar_cpp17, navbar_cpp14, navbar_cpp11)
© 1994 - 2024 Cloud Monk Losang Jinpa or Fair Use. Disclaimers
SYI LU SENG E MU CHYWE YE. NAN. WEI LA YE. WEI LA YE. SA WA HE.