jhylands

spacial data c

Sep 29th, 2015
204
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.59 KB | None | 0 0
  1.     int x, y;
  2.     struct bin data;
  3.     struct map *dev[3];
  4. };
  5.  
  6. struct bin {
  7.     struct oject *objects[5];
  8. };
  9. struct coord {
  10.     int x;
  11.     int y;
  12. };
  13. struct object {
  14.     struct coord coord;
  15.     int data;
  16. };
  17. int main()
  18. {
  19.     struct map map;
  20.     /*Loop through asking and inserting*/
  21.     for (int i = 0; i < 5; i++) {
  22.  
  23.     }
  24.  
  25.     while (1);
  26.    
  27.     return 0;
  28. }
  29. int insert(struct object object, struct map map) {
  30.  
  31. }
  32. int  getCoord(int *x, int*y) {
  33.     printf("Please enter the coordinates:");
  34.     printf("x:");
  35.     *x = getInt();
  36.     printf("y:");
  37.     *y = getInt();
  38.     return 0;
  39. }
  40.  
  41. int getInt() {
  42.     int i;
  43.     scanf("%d", i);
  44.     return i;
  45. }
  46. struct object getObejct() {
  47.  
  48. }
Advertisement
Add Comment
Please, Sign In to add comment