Guest User

Untitled

a guest
Apr 21st, 2018
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. ` #include <stdio.h>
  2.  
  3.  
  4.  
  5.  
  6. int main()
  7. {
  8. int MazeMatrix[64];
  9. int i;
  10.  
  11.  
  12.  
  13. FILE *mazefile; //created a pointer named mazefile
  14. mazefile = fopen("m5.txt","r");
  15. if (mazefile == NULL)
  16. {
  17. printf("Didn't work");
  18. }
  19. for (i = 0; i < 32; i++)
  20. {
  21. fscanf_s(mazefile, "%d", &MazeMatrix[i]);
  22. }
  23. printf("%d", &MazeMatrix);
  24. }`
Add Comment
Please, Sign In to add comment