Advertisement
lukasd

zadanie 0 zestaw 20

Jan 25th, 2018
210
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.23 KB | None | 0 0
  1. typedef struct
  2. {
  3.     float x;
  4.     float y;
  5. }Point;
  6. void kolos1()
  7. {
  8.     FILE *fp = fopen("file.bin", "wb");
  9.     Point arr[5] = { {1,2},{3,4},{5,6},{7,8},{9,10} };
  10.     fwrite(arr, sizeof(Point), sizeof(arr) / sizeof(Point), fp);
  11.     fclose(fp);
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement