Guest User

funktionen.h

a guest
Apr 3rd, 2019
133
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.85 KB | None | 0 0
  1. #pragma once
  2. #include <stdio.h>
  3. #include <string.h>
  4. #include <ctype.h>
  5. #include <stdlib.h>
  6. #include <time.h>
  7. #include <fstream>
  8.  
  9. #define DATEINAME "Studierendendaten.bin"
  10. #define EINGABELIMIT 30
  11. #define MAXBYTES 76
  12. #define maximum 6
  13.  
  14. struct Student person1;
  15.  
  16. FILE* datei_oeffnen(void);
  17. FILE* datei_oeffnen_aendern(void); // rb+
  18.  
  19. struct Student
  20. {
  21. char name[EINGABELIMIT];
  22. char vorname[EINGABELIMIT];
  23. int matrikelnummer;
  24. float mathe_z;
  25. float programmieren_z;
  26. float datenstrukturen_z;
  27. };
  28.  
  29. int get_dateigroesse(FILE*);
  30. void datei_lesen(struct Student*, FILE*);
  31. void datei_schreiben(struct Student*, FILE*);
  32. void datei_schreiben_ersetzen(struct Student*, FILE*);
  33. int daten_eingeben(struct Student*, FILE*, int);
  34. void dateiinhalt_aendern(struct Student*, int, FILE*);
  35. void dateiinhalt_loeschen(struct Student*, int, FILE*);
Add Comment
Please, Sign In to add comment