subject

Update the code in main() that adds nodes to the list. Replace the lines shown below at the left with those on the right. if(infile. good()) { p = new node(name); p->put(cout); if(head==NULL) head = p; else q->add(p); q = p; }; ← if(infile. good()) { p = new node(name); p->put(cout); if(head==NULL) head = p; else head->add(p); }; If head is NULL, then the list is empty and head is set to p. Otherwise, head is used to call the add() function.

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 06:30
Exchanging which type of data uses the least bandwidth? music photographs video voice bandwidth- the amount of data that can be moved between two points in a set time period
Answers: 1
question
Computers and Technology, 23.06.2019 22:30
How many points do i need before i can send a chat
Answers: 1
question
Computers and Technology, 24.06.2019 11:40
100 pts. first person gets brainliest
Answers: 2
question
Computers and Technology, 24.06.2019 14:00
Which computer tools allow you to communicate with coworkers, family,and friends
Answers: 1
You know the right answer?
Update the code in main() that adds nodes to the list. Replace the lines shown below at the left wit...
Questions
question
Mathematics, 28.08.2019 00:30
Questions on the website: 13722367