Basic Keywords
Applies To: C++Builder 1 or higher
Category: C++ Language
- asm: use assembly language in the C++ source code
- auto: declare local variables
- bool: declare Booleans with true or false value
- break: exit from a switch, for, while or do loop
- case: use with a switch statement
- catch: handle an exception
- char: declare a character data type variable
- class: declare a C++ class
- const: make a variable constant
- const_cast: add or remove const and/or volatile
- continue: pass control to the end of the loop
- default: specify the default block in a switch statement
- delete: free the memory allocated by new
- do: execute a code until a condition becomes false
- double: declare a double-precision floating-point variable
- dynamic_cast: perform runtime casts
- else: provide an alternative to the if statement
- enum: create a set of integer constants
- explicit: use a constructor only if it matches an initialization
- extern: indicate that a variable is defined in a separate code
- false: set a Boolean to false
- float: declare a floating-point variable
- for: implement an iterative loop
- friend: declare functions with full access to private members
- goto: jump to the location of a local label
- if: implement a conditional statement
- inline: declare a C++ inline function
- int: declare an integer data type variable
- long: declare a long integer data type variable
- mutable: make a constant modifiable
- namespace: declare a namespace
- new: allocate dynamic memory
- operator: create an overloaded operator action
- private: declare a private member of a class
- protected: declare a protected member of a class
- public: declare a public member of a class
- register: optimize access to a variable for speed
- reinterpret_cast: change one type into a different type
- return: exit from the function and optionally return a value
- short: declare a short integer data type variable
- signed: modify a data type
- sizeof: return the length of a variable or data type
- static: create a storage class specifier for the local variable
- static_cast: perform non-polymorphic casts
- struct: create a structure
- switch: pass control to multiple branches and evaluate them
- template: create a family of related functions and classes
- this: points to the object for which the function is called
- throw: throw an exception
- true: set a Boolean to true
- try: monitor for exceptions
- typedef: create a new name for an existing data type
- typeid: returns a description of the type of the object
- typename: use in place of the class keyword in a template
- union: define variables that use the same memory storage
- unsigned: modify a data type
- using: access namespace members individually
- virtual: create a virtual function
- void: declare a function that does not return a value
- volatile: a variable can be changed by hardware routines
- wchar_t: declare a wide-character data type variable
- while: execute a code until a condition becomes false
C++Builder Developer's Network
Copyright © Yoto Yotov