Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "stdafx.h"
- #include <iostream>
- using namespace std;
- int main()
- {
- int ile = 5;
- int ***wsk;
- wsk = new int **[ile];
- for (int i = 0; i < ile; i++)
- {
- wsk[i] = new int *[ile];
- for (int j = 0; j < ile; j++)
- {
- wsk[i][j] = new int{ i + j };
- }
- }
- cout << *(wsk[3][4]) << endl;
- system("pause");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement