Advertisement
CD503

storms.h

Nov 29th, 2024
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.92 KB | None | 0 0
  1. #ifndef STORMS_H
  2. #define STORMS_H
  3. #include <fstream>
  4.  
  5.  
  6. using namespace std;
  7.  
  8. void printMenu();
  9.  
  10. const int MAX_CHAR = 20;
  11.  
  12. struct STORM{
  13. char NAME[MAX_CHAR] = {};
  14. int STORM_YEAR = 0;
  15. int STORM_MONTH = 0;
  16. int STORM_DAY = 0;
  17. char TYPE[MAX_CHAR] = {};
  18. int STORM_CAT = 0;
  19. int MAX_SPEED = 00;
  20. };
  21.  
  22.  
  23. void initStorm( char* NAME, int STORM_YEAR, int STORM_MONTH, int STORM_DAY,
  24. char* TYPE, int STORM_CAT, int MAX_SPEED);
  25.  
  26. void printStorm();
  27. void fillStormList(struct STORM Storm, ifstream &inFile);
  28. void getStormName(ifstream &inFile, char NAME[]);
  29. void getStormYear(ifstream &inFile, int STORM_YEAR);
  30. void getStormMonth(ifstream &inFile, int STORM_MONTH);
  31. void getStormDay(ifstream &inFile, int STORM_DAY);
  32. void getStormType(ifstream &inFile, char TYPE);
  33. void getStormCat(ifstream &inFile, int STORM_CAT);
  34. void getStormMaxSpeed(ifstream &inFile, int MAX_SPEED);
  35.  
  36. #endif
  37.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement