cpp | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

cpp

A record in the birthday housekeeper includes the name, age and birthday of a friend. By entering the name, you can find the age and birthday information. Please use the structure body birth to store the records, and implement a function find (birth * all, int n, string name) to query the up-to-date information. input In the first line, a positive integer n is given as the number of records in the birthday housekeeper. Then n lines, each line giving name, age, birthday, separated by spaces. (make sure the name is not repeated) The last line indicates the name to query. output The age and birthday obtained by the query are separated by spaces. If the information does not exist, the output string "not found".

21st Nov 2019, 11:25 PM
chrispine kambimbi
2 Answers
+ 4
Your attempt ?
21st Nov 2019, 11:26 PM
Aymane Boukrouh
Aymane Boukrouh - avatar
+ 2
I think something is missing in your question............🤔 Ah! Yes, I got it ..... It's your attempt. Try putting in some efforts from your side also so that we can also understand that you are willing to do this
22nd Nov 2019, 2:51 AM
Arsenic
Arsenic - avatar