Create one personal material main file. The format of the record is the followin
ID: 3618762 • Letter: C
Question
Create one personal material main file. The format of the record is the following: Pleasure use the following record as the testing data: Note : sex1: man,2: female Education: A: High school, B: university ,c: Master, D: ph. D. major :cs: computer science ,MS: management science. EE: electronic engineering Please search and print out the records which meet the following requirements: Sex :man Education: university Major :electronic engineering Please search and print out the records which meet the following Requirements: Nationality :ROC Area code of the tel: 02 Using the text file to process this problem. Using the binary file to process this problem.Explanation / Answer
please rate - thanks this should get you started (the search doesn't work yet) let me know if I should continue tomorrow, or you're ok fromhere #include #include #include using namespace std; struct Student {char name[11]; int sex; char ed; string major; string nation; string tel; }stu[50]; int enterdata(Student[]); void printdata(Student[],int); voidgetrequirements(int&,char&,string&,string&,string&); void dosearch(int,char,string,string,string,Student[],int); int main() {int n,sx; char edu; string maj,nat,area; n=enterdata(stu); if(n>=0) { for(;;) {getrequirements(sx,edu,maj,nat,area); dosearch(sx,edu,maj,nat,area,stu,n); } } system("pause"); return 0; } void dosearch(int sx,char e,string m,string n,string a,Students[],int num) {int i; for(i=0;iRelated Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.