Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
#define PRINT InputParameters::instance()->print
int main(){
  PRINT("This is a line of log");
  return 0;
}

Declaration, Initialization, Definition of static const parameters

Code Block
// *.h :
class A {
public:

  static const int     INT_PAR    = 185;
  static const double  DOUBLE_PAR; 
}

// *.cpp :
const int    A::INT_PAR;
const double A::DOUBLE_PAR = 109.92;