statement

   
statement Statement syntax

  statement  ::=  labeled-stmt   expr-stmt   compound-stmt   decl-stmt   try-block  if (  condition  )  statement  if (  condition  )  statement  else  statement  switch (  condition  )  statement  while (  condition  )  statement  do  statement  while (  expression  )       for (  for-init-stmt  [  condition  ] ; [  expression  ] )  statement  break ;       continue ;  goto  identifier  ;  return [  expression  ] ;  expr-stmt  ::= [  expression  ] ;  compound-stmt  ::= { [  statement-seq  ] }  statement-seq  ::=  statement   statement-seq   labeled-stmt  ::=  identifier  :  statement  case  constant-expr  :  statement  default :  statement   decl-stmt  ::=  block-decl   for-init-stmt  ::=  expr-stmt   simple-decl   condition  ::=  expression   type-specifier-seq   declarator  =  assignment-expr  

See Chapter 4 for a complete discussion of statements.

See Also

break , case , continue , declaration , declarator , default , do , else , expression , for , goto , if , return , switch , try , type , while , Chapter 4

   


C++ in a Nutshell
C++ in a Nutshell
ISBN: 059600298X
EAN: 2147483647
Year: 2005
Pages: 270
Authors: Ray Lischner

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