fork(1) download
  1. #include <iostream>
  2.  
  3. struct TMenu
  4. {
  5. int lineID[10];
  6. };
  7.  
  8. int main(int, char*[])
  9. {
  10. const TMenu t1[8] =
  11. {
  12. {{3}},
  13. {{4}},
  14. {{33, 22}},
  15. {{33, 22}},
  16. {{}},
  17. {{9, 8, 7, 6, 5, 4, 3, 2, 1}},
  18. };
  19. for (int i = 0; i < 8; ++i)
  20. {
  21. for (int j = 0; j < 10; ++j)
  22. {
  23. std::cout << t1[i].lineID[j] << "\t";
  24. }
  25. std::cout << std::endl;
  26. }
  27. }
  28.  
Success #stdin #stdout 0.01s 2724KB
stdin
Standard input is empty
stdout
3	0	0	0	0	0	0	0	0	0	
4	0	0	0	0	0	0	0	0	0	
33	22	0	0	0	0	0	0	0	0	
33	22	0	0	0	0	0	0	0	0	
0	0	0	0	0	0	0	0	0	0	
9	8	7	6	5	4	3	2	1	0	
0	0	0	0	0	0	0	0	0	0	
0	0	0	0	0	0	0	0	0	0