Q:

Considering the following specifications:

Structure nameDataTypeSize
Namefirstarray of characters60
midarray of characters40
lastarray of characters60
phoneareaarray of characters4
excharray of characters4
numbarray of characters6

class nameDateType
p-recnameName
phonePhone

with member functions constructors and display_rec.

(i) Declare structures in C++ for Name and Phone.

(ii) Declare a class for P_rec.

(iii) Define the constructor (outside the class P_rec) that gathers information from the user for the above two structures Name and Phone.

(iv) Define the display_rec (outside the class P_rec) that shows the current values.

CLASSES

All Replies

Viewing 1 replies (of 1 total)

Viewing 1 replies (of 1 total)

  • You must be logged in to reply to this topic.