Guest User

Untitled

a guest
Oct 20th, 2014
200
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.36 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <malloc.h>
  3.  
  4. #define N 7000
  5. #define DAYS 700
  6. #define ChCount 500
  7.  
  8. struct Ch
  9. {
  10.     int **Days;
  11.     int Length;
  12. }RCh;
  13.  
  14. int main(void)
  15. {
  16.     Ch *RCh = new Ch[ChCount];
  17.     for (int i = 0; i < ChCount; i++){
  18.         RCh[i].Days = new int* [N];
  19.         for(int j = 0; j < N; j++)
  20.             RCh[i].Days[j] = new int [DAYS];
  21.     }
  22.     delete [] RCh;
  23.  
  24.     getchar();
  25. }
Advertisement
Add Comment
Please, Sign In to add comment