Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Jul 15th, 2012  |  syntax: None  |  size: 0.35 KB  |  hits: 10  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. Same name for a static variable within a static member function [closed]
  2. class Type
  3. {
  4.     public:
  5.         static void fun()
  6.         {
  7.             static bool sameName = false;
  8.  
  9.             // work with sameName
  10.  
  11.         }
  12.         static void moreFun()
  13.         {
  14.             static bool sameName = false;
  15.  
  16.             // work with sameName
  17.         }
  18. };