fork download
  1. class GF
  2. {
  3. public:
  4. /*
  5.   ...
  6.   */
  7. static void initTable(const int genPoly);
  8. private:
  9. /*
  10.   ...
  11.   */
  12. static const int *rootTable; // *
  13. };
  14.  
  15. /*
  16. ...
  17. */
  18. void GF::initTable(const int genPoly)
  19. {
  20. rootTable = new int[genPoly]; // **
  21. // ...
  22. }
  23.  
  24. const int* GF::rootTable;
  25.  
  26. int main()
  27. {
  28. GF::initTable( 42 );
  29. }
Success #stdin #stdout 0s 3424KB
stdin
Standard input is empty
stdout
Standard output is empty