FREE Subscription to Dr. Dobb’s Digest: Same Great Content, New Digital Edition
Site Archive (Complete)
C++
Email
Print
Reprint

add to:
Del.icio.us
Digg
Google
Furl
Slashdot
Y! MyWeb
Blink
January 01, 2003

Statements and Loops

(Page 2 of 4)
Listing 1: Invalid references to identifiers declared later

Listing 1: Invalid references to identifiers declared later

void ex1()
{
  // y and MyInt are not declared
  // so next line is wrong
  int x = (MyInt) y;
  typedef int MyInt;
  float y = 0.0;

  float a;
  // b and MyFloat are not declared
  // yet, so next line is wrong
  a = (MyFloat) b;
  typedef float MyFloat;
  int b = 0;
}

Previous Page | 1 | 2 | 3 | 4 Next Page
TOP 5 ARTICLES
No Top Articles.



MICROSITES
FEATURED TOPIC

ADDITIONAL TOPICS

INFO-LINK