Information Technology > Solutions Guide > LAB: Warm up: Contacts ContactNode (All)
using namespace std; #include <iostream> #include <string> #ifndef _CONTACT #include "ContactNode.h" #endif void ContactNode::PrintContactNode() { cout << "Name: " << contactName << endl; cout... << "Phone number: " << contactPhoneNum << endl; } void ContactList::InsertAddNew(string nameStr, string phoneNum){ TContactNode newNode = new ContactNode(nameStr,phoneNum); if (count==0){ head=tail=newNode; } else { tail->InsertAfter(newNode); tail = tail->GetNext(); } count++; } ContactList::~ContactList(){ TContactNode tempNodePtr = head; for (int iLoop=0; iLoop<count; iLoop++){ head = head->GetNext(); [Show More]
Last updated: 2 years ago
Preview 1 out of 2 pages
Buy this document to get the full access instantly
Instant Download Access after purchase
Buy NowInstant download
We Accept:
Can't find what you want? Try our AI powered Search
Connected school, study & course
About the document
Uploaded On
Aug 09, 2022
Number of pages
2
Written in
This document has been written for:
Uploaded
Aug 09, 2022
Downloads
0
Views
182
In Scholarfriends, a student can earn by offering help to other student. Students can help other students with materials by upploading their notes and earn money.
We're available through e-mail, Twitter, Facebook, and live chat.
FAQ
Questions? Leave a message!
Copyright © Scholarfriends · High quality services·