Last active
January 4, 2016 15:39
-
-
Save bambuchaAdm/8642446 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| static | |
| int ** | |
| some something(int * tab,int size) | |
| { | |
| int ** main_tab = malloc(size * sizeof(int *)); | |
| int i=0,j=0; | |
| for(i = 0; i < size; ++i){ | |
| main_tab[i] = malloc(tab[i] * sizeof(int)); | |
| for(j = 0; j < tab[i]; ++j){ | |
| main_tab[i][j] = j; | |
| } | |
| } | |
| return main_tab; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| int * gimme_merenge(int currentshit[5][5]) | |
| { | |
| int current_state[23]; | |
| int * blahblah = malloc(25*sizeof(int)); | |
| int best[25]; | |
| int next[25]; | |
| int i,j; | |
| //cos sie dzieje ze tablica best[25] zawiera wszystko co potrzebuję. Nieważne co. Zawiera makę pakę na szczudłach. | |
| return blahblah; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment