fork download
  1. const int days=31;
  2. const int exp=6;
  3.  
  4. struct Array{
  5. int days;
  6. int exp;
  7. int **M;
  8. };
  9.  
  10. int main()
  11. {
  12. Array loc;
  13. loc.days = days;
  14. loc.exp = exp;
  15. loc.M = new int*[loc.days];
  16. for(int i=0; i<loc.days;i++ ){
  17. loc.M[i] = new int[loc.exp];
  18. for (int j = 0; j< loc.exp; j++){
  19. loc.M[i][j] = 0;
  20. }
  21. }
  22. }
Success #stdin #stdout 0.01s 2852KB
stdin
Standard input is empty
stdout

Standard output is empty