Advertisement
Guest User

Untitled

a guest
Mar 28th, 2020
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.17 KB | None | 0 0
  1. Student::Student(const Student& other_object) {
  2.     this->name = new char[strlen(other_object.name) + 1];
  3.     strcpy(this->name, other_object.name);
  4.     this->fn = other_object.fn;
  5. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement