Advertisement
Guest User

Untitled

a guest
Jul 17th, 2019
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.17 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3.  
  4. typedef char String[30];
  5.  
  6. typedef struct{
  7. float grades;
  8. String course;
  9. int year;
  10. String school;
  11. }Education;
  12.  
  13. typedef struct{
  14. float inches;
  15. int pack;
  16. float BMI;
  17. }Preferences;
  18.  
  19. typedef struct {
  20. String name;
  21. int age;
  22. String address;
  23. Preferences pref; // DETAILS SA PREFERENCES
  24. Education educ; // DETAILS SA EDUCATION NIYA
  25. }BoyDetail;
  26.  
  27. typedef struct boyNode{
  28. BoyDetail boy; // DETAILS SA LALAKI
  29. struct boyNode * next; // NEXT NODE SA LAKI
  30. }BoyNode,*BoyList;
  31.  
  32. typedef struct{
  33. BoyList bbyboy;
  34. int totalBoys;
  35. }Lalaki;
  36.  
  37.  
  38.  
  39. BoyDetail initBoy(Preferences,Education,String name,int age,String address); // Sudli ug details ang BoyDetail
  40. void insertLast(Lalaki*,BoyDetail); // insert sa last nga node (CLUE: kung mo null , ara i paslak
  41. void displaySpecificGuy(Lalaki, String name); //"ARNAN PLANCO" dapat ang makit.an
  42. void deleteNoAbs(Lalaki*); // 0 ABS i delete, update totalBoys
  43. void sortAccToInches(Lalaki); // SELECTION sort
  44. void insertSortedAccToBMI(Lalaki*,BoyDetail); // Sort according to BMI
  45. BoyList getPasarBoys(Lalaki); // Requirements sa pasar nga lalaki: 27 BMI , 4 abs , 2.0 GPA , 7 inches
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement