Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <string.h>
- #include <stdlib.h>
- #ifndef LOCATIES_H
- #define LOCATIES_H
- typedef struct location
- {
- int oorsprong;
- int aantal_pro;
- char naam_pro [20];
- int keuze2;
- double prijs_pro;
- } location_t;
- #ifndef LOCATIEBENOEMEN_H
- #define LOCATIEBENOEMEN_H
- #include <stdio.h>
- #include "locaties.h"
- int assign();
- #endif
- int assign(location_t *pLocation1)
- {
- pLocation1->oorsprong = 1;
- return 0:
- }
- #include <stdio.h>
- #include <string.h>
- #include <stdlib.h>
- #include "locations.h"
- #include "locationsassignment.h"
- int main()
- {
- printf("%d",location1.oorsprong);
- return 0;
- }
Add Comment
Please, Sign In to add comment