Reference no: EM132196153
Write a C++ program.
General requirements
1. Use of type char * string (dynamic through new, or static char [N]), we recommend the use of string functions from the library <string.h>
2. Dynamic data structure (list) created by students on their own.
Describe the structure of the name znak, containing the following fields:
• surname, first name;
• Zodiac sign;
• date of birth (an array of three numbers).
Write a program that performs the following actions:
• keyboard input data into an array consisting of a maximum of 12 znak type elements, and the ability to make the interrupt input, so you can not enter all 12 elements; after the end of the input array to sort by date of birth elements;
• output to the console information about the person whose name is entered from the keyboard;
• If this is not, display an appropriate message;
• implement a second version of the program, instead of an array to use the doubly linked list; add elements so as to preserve the ordering of the list by date of birth (to insert a new element after the element that is less than the new element and the front of a large element).