C++ Language Manager

Conditional

?:

 

 

Sequential evaluation

,

 

 

Size

sizeof

Type conversion

(type) or simple

 

type(expr)

 

Array indexing

[,]

 

 

Member reference

->, ., .*,->*

 

 

Grouping

()

 

 

Scope resolution

::identi￿er

The following operators are available with the HP ANSI CC compiler:
Dynamic cast

dynamic_cast< type>(expr)

Type identi￿cation

typeid( expr )

Identi￿ers

Identi￿ers are case sensitive and start with a letter (ISO Latin-1 decimal values 65-90 and 97-122), a dollar sign ($), a tilde (~), a colon (:), or an underscore (_); any additional characters can be a letter, digit (0-9), dollar sign ($), underscore (_), a tilde (~), a colon (:), or an operator symbol. Use of the dollar sign, tilde, and colon are extensions to C++.

Constan ts

 

Integer

digits [L j l j U j u] (decimal)

 

0xdigits [L j l j U j u] (hexadecimal)

 

0digits [L j l j U j u] (octal)

 

For example, 0xFu speci￿es an unsigned hexadecimal

 

number.

Float

digits .digits [fE j eg[+ j -]digits ][F j f j L j l]

 

digits .[fE j eg[+ j -]digits ][F j f j L j l]

 

.digits [fE j eg[+ j -]digits ][F j f j L j l]

 

For example, 2.0e4L speci￿es a number of type long

 

double .

String

"string "

 

'character '

 

'\nnn'

B-10 Language Managers