Horje
case label in c++ Code Example
case label in c++
switch(foo) {
  case 1:
    int i = 42; // i exists all the way to the end of the switch
    dostuff(i);
    break;
  case 2:
    dostuff(i*2); // i is *also* in scope here, but is not initialized!
}




Cpp

Related
Resize method in c++ for arrays Code Example Resize method in c++ for arrays Code Example
sync_with_stdio Code Example sync_with_stdio Code Example
vector.find() Code Example vector.find() Code Example
c++ if in equivalent Code Example c++ if in equivalent Code Example
vector fin element c++ Code Example vector fin element c++ Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
7