Question: Struct SCP used to store information about paranormal objects is declared as below: struct SCP { int id; int objClass; string speConProcedures; string description; string

Struct SCP used to store information about paranormal objects is declared as below:
struct SCP {
int id;
int objClass;
string speConProcedures;
string description;
string* addendums;
int numAddendums;
};
The paranormal object SCP-038 has the ability to clone other objects, such as SCP-500(panacea). The clone is independent of the original, and the clone will remain the same whether the original is destroyed or modified.
Implement the function with the following prototype:
SCP* cloneSCP(SCP* original);
The function returns a pointer of the new cloned instance of the original object original. Choose the appropriate copy method.
Note: Libraries iostream and string have been imported, and namespace std has been used.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!