Keywords

 < Day Day Up > 



C++ programs, like example 5-2, are constructed using certain identifiers that are reserved for use by the C++ compiler. These reserved words are known as keywords. You can name your variables and constants anything you like so long as you avoid using keyword names. The keywords are listed in the first four columns of the C++ keyword list below. The fifth column lists identifier names that are reserved to implement alternative representations of certain operators and punctuators. The alternative representation identifiers may or may not be implemented by the compiler you are using. Regardless, you are advised not to create user-defined types using these reserved names because doing so may break your program sometime in the future.

Table : C++ Keyword List

asm

else

new

template

 

auto

enum

operator

this

 

bool

explicit

private

throw

 

break

export

protected

true

 

case

extern

public

try

 

catch

false

register

typedef

and

char

float

reinterpret_ca

typeid

and_eq

class

for

st

typename

bitand

const

friend

return

union

bitor

const_cast

goto

short

unsigned

compl

continue

if

signed

using

not

default

inline

sizeof

virtualvoid

not_eq

delete

int

static

volatile

or

do

long

static_cast

wchar_t

or_eq

double

mutable

struct

while

xor

dynamic_cast

namespace

switch

 

xor_eq



 < Day Day Up > 



C++ for Artists. The Art, Philosophy, and Science of Object-Oriented Programming
C++ For Artists: The Art, Philosophy, And Science Of Object-Oriented Programming
ISBN: 1932504028
EAN: 2147483647
Year: 2003
Pages: 340
Authors: Rick Miller

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net