Lade...
 

de_InstantView_VariablenVergleich

Variable in InstantView im Vergleich mit C++

 

Scope

Beispiel

Analogie zu C++

global

GlobalVar(x, y) 

static int x, y;  bzw.

extern int x, y;
 

Module

Module(M)
[

  Var(x, y)

]

 

 

class M

{

protected:

  int x, y;

};

 

Module(M)
[

  StaticVar(x, y)

]


 

class M

{

protected:

  static int x, y;

};

 

local

Define(Foo)

  LocalVar(x, y)

  {

    LocalVar(x, y)
    . . .

  }

  . . .

  ;

 

void Foo()

{

  int x, y;

  {

    int x, y;
    . . .

  }

  . . .

}

Define(Foo)

  StaticVar(x, y)

  {

    StaticVar(x, y)
    . . .

  }

  . . .

  ;

void Foo()

{

  static int x, y;

  {

    static int x, y;
    . . .

  }

  . . .  

}