fork download
  1. #include <stdio.h>
  2.  
  3.  
  4. struct date
  5. {
  6. int month;
  7. int day;
  8. int year;
  9. };
  10.  
  11. struct horse_rider {
  12. char name[50];
  13. int YearsofRiding;
  14. int Totalwins;
  15. };
  16.  
  17. struct horse_stats {
  18. int Totalwins;
  19. char name[50];
  20. int weight;
  21. int height;
  22. };
  23. // add a structure to store details on each race
  24.  
  25. struct race_details
  26. {
  27.  
  28. struct date raceDate; // A - the date of the race
  29. int raceNumber; // C - the specific race number identifier
  30. char trackName[50]; // E - the name of the track where the race was held
  31. int NumberofLaps;
  32. int NumberofRacers;
  33. // TODO - add other members
  34.  
  35.  
  36. };
  37.  
  38.  
  39.  
  40.  
  41. // add a structure to store details on each horse
  42.  
  43. struct horse_details_and_past_performance
  44. {
  45.  
  46. int programNumber; // 1 - the program number
  47. char horseName[50]; // 8 - horse name
  48. char horseGender; // 10 - gender of the horse
  49. int weight;
  50. int height;
  51. int age;
  52. int Totalwins;
  53. int Totallosses;
  54. char Nickname[50];
  55.  
  56.  
  57. };
  58.  
  59. int main ( )
  60. {
  61.  
  62. // NOTE: You don't have to populate any of these!!!
  63.  
  64. struct horse_rider myRaces[10];
  65. struct horse_stats myHorses[20];
  66.  
  67. // nothing else needs to be added to main
  68. return (0);
  69. };
Success #stdin #stdout 0.01s 5288KB
stdin
Standard input is empty
stdout
Standard output is empty