Category: Library Types

Library Types

Vector Type

Vector Type

A vector is a collection of objects of a single type, each of which has an associated integer index. As with strings, the library takes care of managing the memory associated with storing the...

Comparing Strings in C++

Comparing Strings in C++

The relational operators = test whether one string is less than, less than or equal, greater than, or greater than or equal to another: Example Example The relational operators compare strings using the same...

String in C++

String in C++

The string type supports variable-length character strings. The library takes care of managing the memory associated with storing the characters and provides various useful operations. The library string type is intended to be efficient...

Namespaces in C++

Namespaces in C++

Namespaces allow to group entities like classes, objects and functions under a name. This way the global scope can be divided in “sub-scopes”, each one with its own name.   The format of namespaces...