diff options
| author | Asahel <[email protected]> | 2024-03-08 09:49:43 -0800 |
|---|---|---|
| committer | Asahel <[email protected]> | 2024-03-08 09:49:43 -0800 |
| commit | 4bb119fe552863021ba9ed9ec594fc66f2d51d8f (patch) | |
| tree | f17b1606fe6ca7a4c4f1548ee22dc6547c159364 /InclassExercise14/Contact.h | |
| parent | add deadline (diff) | |
| download | archived-in-class-exercise-14-asahellt-4bb119fe552863021ba9ed9ec594fc66f2d51d8f.tar.xz archived-in-class-exercise-14-asahellt-4bb119fe552863021ba9ed9ec594fc66f2d51d8f.zip | |
Implemented copy and move constructor
Diffstat (limited to 'InclassExercise14/Contact.h')
| -rw-r--r-- | InclassExercise14/Contact.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/InclassExercise14/Contact.h b/InclassExercise14/Contact.h new file mode 100644 index 0000000..ac97e32 --- /dev/null +++ b/InclassExercise14/Contact.h @@ -0,0 +1,9 @@ +#ifndef CONTACT_H +#define CONTACT_H + +void SetFirstName(const char* firstName) { + delete[] _firstName; + _firstName = new +} + +#endif CONTACT_H
\ No newline at end of file |