Advertisement
Guest User

Untitled

a guest
May 21st, 2019
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.41 KB | None | 0 0
  1. #include "stdafx.h"
  2. #include "stdlib.h"
  3. #include "Data.h"
  4.  
  5. int main()
  6. {
  7.     char FileName[] = "MyFile.bin";
  8.  
  9.     MY_CAR *arr = CreateArray(5);
  10.    
  11.     if (!FillArray(arr))
  12.     {
  13.         //....
  14.     }
  15.    
  16.     PrintArray(arr, "tablica MY_CAR");
  17.     Save(arr, FileName);
  18.     arr = FreeArray(arr);
  19.  
  20.     MY_CAR *brr = Read(NULL, FileName);
  21.     PrintArray(brr, "tablica MY_CAR");
  22.     brr = FreeArray(brr);
  23.  
  24.     system("pause");    
  25.     return 0;
  26. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement