Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Contact::Contact(const char *name, const long long *phoneNumber, int numOfPhoneNumber)
- {
- if (name != 0)
- {
- strncpy(this->contactName, name, 19);
- contactName[19] = '\0';
- ArraySize = numOfPhoneNumber;
- phoneNumbers = new long long[ArraySize];
- for (int i = 0; i < ArraySize; i++) {
- if (phoneNumber[i] > 10000000000 && phoneNumber[i] < 999999999999) {
- phoneNumbers[i] = phoneNumber[i];
- }
- }
- }
- else {
- *this = Contact();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement