fork download
  1. #include <stdio.h>
  2.  
  3. /*Global Variables*/
  4. int spawn[2];
  5. char map[25][81] = {
  6.  
  7. {"################################################################################"},
  8. {"# #"},
  9. {"# #"},
  10. {"# #"},
  11. {"# #"},
  12. {"# #"},
  13. {"# #"},
  14. {"# #"},
  15. {"# #"},
  16. {"# #"},
  17. {"# #"},
  18. {"# #"},
  19. {"# #"},
  20. {"# #"},
  21. {"# #"},
  22. {"# #"},
  23. {"# #"},
  24. {"# #"},
  25. {"# #"},
  26. {"# #"},
  27. {"# #"},
  28. {"# #"},
  29. {"# #"},
  30. {"# #"},
  31. {"################################################################################"}
  32.  
  33. };
  34.  
  35.  
  36.  
  37. /*Prototypes*/
  38. void TEST_LEVEL();
  39. void LOAD_LEVEL();
  40. char * intToRow(int number);
  41.  
  42.  
  43. /*Main*/
  44. int main() {
  45.  
  46. TEST_LEVEL();
  47. LOAD_LEVEL();
  48.  
  49. return 0;
  50.  
  51. }
  52.  
  53. void TEST_LEVEL() {
  54.  
  55. spawn[0] = 15;
  56. spawn[1] = 15;
  57.  
  58.  
  59. return;
  60.  
  61. }
  62.  
  63.  
  64.  
  65. void LOAD_LEVEL() {
  66.  
  67. char * row[81];
  68. int i = 1;
  69.  
  70. while(i < 25) {
  71.  
  72. *row = intToRow(i);
  73. printf("%s", *row);
  74. i++;
  75.  
  76. }
  77.  
  78.  
  79. return;
  80.  
  81. }
  82.  
  83.  
  84. char * intToRow(int number) {
  85.  
  86. char *row[81];
  87.  
  88. return *row = map[number];
  89.  
  90. }
Success #stdin #stdout 0s 2248KB
stdin
Standard input is empty
stdout
#                                                                              ##                                                                              ##                                                                              ##                                                                              ##                                                                              ##                                                                              ##                                                                              ##                                                                              ##                                                                              ##                                                                              ##                                                                              ##                                                                              ##                                                                              ##                                                                              ##                                                                              ##                                                                              ##                                                                              ##                                                                              ##                                                                              ##                                                                              ##                                                                              ##                                                                              ##                                                                              #################################################################################