Guest User

Untitled

a guest
Nov 15th, 2018
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.60 KB | None | 0 0
  1. #include <string.h>
  2. #include <stdlib.h>
  3. #ifndef LOCATIES_H
  4. #define LOCATIES_H
  5.  
  6. typedef struct location
  7. {
  8. int oorsprong;
  9. int aantal_pro;
  10. char naam_pro [20];
  11. int keuze2;
  12. double prijs_pro;
  13. } location_t;
  14.  
  15. #ifndef LOCATIEBENOEMEN_H
  16. #define LOCATIEBENOEMEN_H
  17. #include <stdio.h>
  18. #include "locaties.h"
  19.  
  20. int assign();
  21.  
  22. #endif
  23.  
  24. int assign(location_t *pLocation1)
  25. {
  26. pLocation1->oorsprong = 1;
  27. return 0:
  28. }
  29.  
  30. #include <stdio.h>
  31. #include <string.h>
  32. #include <stdlib.h>
  33. #include "locations.h"
  34. #include "locationsassignment.h"
  35.  
  36. int main()
  37. {
  38.  
  39. printf("%d",location1.oorsprong);
  40. return 0;
  41. }
Add Comment
Please, Sign In to add comment