fork download
  1. #include <iostream>
  2.  
  3. class CMyClass {
  4. public:
  5. struct EKeyword {
  6. static char const* PARAM_1; // You can add constexpr here if in c++11
  7.  
  8. };
  9. };
  10.  
  11. char const* CMyClass::EKeyword::PARAM_1 = "myString1";
  12.  
  13. int main() {
  14. std::cout << CMyClass::EKeyword::PARAM_1 << std::endl;
  15. // your code goes here
  16. return 0;
  17. }
Success #stdin #stdout 0s 15232KB
stdin
Standard input is empty
stdout
myString1