Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <stdlib.h>
- typedef char String[30];
- typedef struct{
- float grades;
- String course;
- int year;
- String school;
- }Education;
- typedef struct{
- float inches;
- int pack;
- float BMI;
- }Preferences;
- typedef struct {
- String name;
- int age;
- String address;
- Preferences pref; // DETAILS SA PREFERENCES
- Education educ; // DETAILS SA EDUCATION NIYA
- }BoyDetail;
- typedef struct boyNode{
- BoyDetail boy; // DETAILS SA LALAKI
- struct boyNode * next; // NEXT NODE SA LAKI
- }BoyNode,*BoyList;
- typedef struct{
- BoyList bbyboy;
- int totalBoys;
- }Lalaki;
- BoyDetail initBoy(Preferences,Education,String name,int age,String address); // Sudli ug details ang BoyDetail
- void insertLast(Lalaki*,BoyDetail); // insert sa last nga node (CLUE: kung mo null , ara i paslak
- void displaySpecificGuy(Lalaki, String name); //"ARNAN PLANCO" dapat ang makit.an
- void deleteNoAbs(Lalaki*); // 0 ABS i delete, update totalBoys
- void sortAccToInches(Lalaki); // SELECTION sort
- void insertSortedAccToBMI(Lalaki*,BoyDetail); // Sort according to BMI
- 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