fork(1) download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. const int sm=10;
  5. class X{
  6. public:
  7. struct SMOKE{
  8. int sV;
  9. static int index_sm;
  10. };
  11. static SMOKE SM[sm];
  12. };
  13. int X::SMOKE::index_sm=0;// на это не ругается
  14. X::SMOKE X::SM[sm];// ругается на это/ Всяк пробовал...
  15.  
  16. int main() {
  17. // your code goes here
  18.  
  19. X::SM[0].sV = 2;
  20.  
  21. return 0;
  22. }
Success #stdin #stdout 0s 3336KB
stdin
Standard input is empty
stdout
Standard output is empty