Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int **graph = new int* [m];
- graph[0] = new int[2*m];
- for(int i = 0; i < m; ++i) {
- graph[i] = *graph + i*(sizeof(int*)*2);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement