A- Write a C++ program to define a record of student (struct) called contactType that contains the following members: - contact ID: int - contact name: string - Phone: int - address: string B- Then create a copy of student record called contact1 of type contactType. C- Initialize the record by the following values: contact ID = 1, contact name= "Your Name", phone=123 , address= "any address" D- Print the record information on the screen.
A- Write a C++ program to define a record of student (struct) called contactType that contains the following members: - contact ID: int - contact name: string - Phone: int - address: string B- Then create a copy of student record called contact1 of type contactType. C- Initialize the record by the following values: contact ID = 1, contact name= "Your Name", phone=123 , address= "any address" D- Print the record information on the screen.
Chapter4: More Object Concepts
Section: Chapter Questions
Problem 2RQ
Related questions
Question
c++
![(1) Struct
A- Write a C++ program to define a record of student (struct) called contactType that contains
the following members:
- contact ID: int
- contact name: string
- Phone: int
- address: string
B- Then create a copy of student record called contact1 of type contactType.
C- Initialize the record by the following values:
contact ID = 1, contact name= "Your Name", phone=123 , address= "any address"
D- Print the record information on the screen.](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2F1a0514eb-cbf4-4621-970d-d601b362d356%2F09a4940e-6624-47f0-a305-9c9716c13a38%2Fnoohxd_processed.png&w=3840&q=75)
Transcribed Image Text:(1) Struct
A- Write a C++ program to define a record of student (struct) called contactType that contains
the following members:
- contact ID: int
- contact name: string
- Phone: int
- address: string
B- Then create a copy of student record called contact1 of type contactType.
C- Initialize the record by the following values:
contact ID = 1, contact name= "Your Name", phone=123 , address= "any address"
D- Print the record information on the screen.
Expert Solution
![](/static/compass_v2/shared-icons/check-mark.png)
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by step
Solved in 3 steps with 1 images
![Blurred answer](/static/compass_v2/solution-images/blurred-answer.jpg)
Knowledge Booster
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.Recommended textbooks for you
![EBK JAVA PROGRAMMING](https://www.bartleby.com/isbn_cover_images/9781337671385/9781337671385_smallCoverImage.jpg)
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
![EBK JAVA PROGRAMMING](https://www.bartleby.com/isbn_cover_images/9781305480537/9781305480537_smallCoverImage.jpg)
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781305480537
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
![EBK JAVA PROGRAMMING](https://www.bartleby.com/isbn_cover_images/9781337671385/9781337671385_smallCoverImage.jpg)
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
![EBK JAVA PROGRAMMING](https://www.bartleby.com/isbn_cover_images/9781305480537/9781305480537_smallCoverImage.jpg)
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781305480537
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT