Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

can anyone fix this. its only priting the first number. Project View - Build . Debug Test Analyze_Tools Debug - xB6 . Extensions Window Help

can anyone fix this. its only priting the first number. image text in transcribed
Project View - Build . Debug Test Analyze_Tools Debug - xB6 . Extensions Window Help Local Windows Debugger Search (Ctrl) , P 1 AssignmentIAR , 11 X newmodetest.cpp newnode.h - 1AR 0) main_savitch_5 list_tail_attachinode & head pt. constne void list_tail_attach(node & head_ptr, const node::value_type& entry) node* new_node; new_node - new node(entry); if (head_ptr == NULL) head_ptr = new_node; 1/head_ptr = new node(entry, head_ptr); //return; else { node* last_ptr = head_ptr; while (last_ptr->link() INULL) last_ptr = new node(entry, head_ptr->link()); last_ptr->set_link(head_ptr); return; /*node* last_ptrwhead_ptr; last_ptr = new node(entry, head_ptr ->link()); while (last_ptr->link() I- NULL) last_ptr->set_link (head_ptr); / No issues found t from: Build Project View - Build . Debug Test Analyze_Tools Debug - xB6 . Extensions Window Help Local Windows Debugger Search (Ctrl) , P 1 AssignmentIAR , 11 X newmodetest.cpp newnode.h - 1AR 0) main_savitch_5 list_tail_attachinode & head pt. constne void list_tail_attach(node & head_ptr, const node::value_type& entry) node* new_node; new_node - new node(entry); if (head_ptr == NULL) head_ptr = new_node; 1/head_ptr = new node(entry, head_ptr); //return; else { node* last_ptr = head_ptr; while (last_ptr->link() INULL) last_ptr = new node(entry, head_ptr->link()); last_ptr->set_link(head_ptr); return; /*node* last_ptrwhead_ptr; last_ptr = new node(entry, head_ptr ->link()); while (last_ptr->link() I- NULL) last_ptr->set_link (head_ptr); / No issues found t from: Build

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions