Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <malloc.h>
- #define N 7000
- #define DAYS 700
- #define ChCount 500
- struct Ch
- {
- int **Days;
- int Length;
- }RCh;
- int main(void)
- {
- Ch *RCh = new Ch[ChCount];
- for (int i = 0; i < ChCount; i++){
- RCh[i].Days = new int* [N];
- for(int j = 0; j < N; j++)
- RCh[i].Days[j] = new int [DAYS];
- }
- delete [] RCh;
- getchar();
- }
Advertisement
Add Comment
Please, Sign In to add comment