Write a c++ program
The above figure represents relationships between different struct variables as described in the following narrations: OnRoad is Company struct variable. Amy, Sammy, and Terry are name variables of Driver structs. As depicted, Company struct has six components. The Driver struct has three components. In your program you need to create all structs variables, make appropriate dereferencing (pointer connection), and display drivers' names using OnRoad variable. Expected output is the following:
Requirements:
- Driver structures should be created with "new" keyword.
- Three Driver pointer types (of Company Struct) should be individual variables, not array.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here