Write a single function: remove() o Signature and structure need exactly the same o Place function in file named (see supplied files):  Boustrophedonic.cpp: • Function  Boustrophedonic.h: •...

Write a single function: remove() o Signature and structure need exactly the same o Place function in file named (see supplied files):  Boustrophedonic.cpp: • Function  Boustrophedonic.h: • Declaration and structure struct Node { Node *pNorth; Node *pSouth; Node *pEast; Node *pWest; } void Remove( Node *&head, int row, int col ); •  ASSUMPTIONS  o Boustrophedonic list is complete and PRISTINE before you remove one node o Only ONE node will be removed in the function o The dimensions of the list are NOT given o Boustrophedonic list has an even number of columns o Boustrophedonic list has no restrictions on number of rows o On deletion, horizontal and vertical connections are preserved across the deleted node Due Dates Goals Assignments Optimized C++ use Adobe Reader to complete Submission Report CSC 361/461 (Type in fields) Keenan Optimized C++ Programming Assignment 5 • Rules: o  NOTE  :  Your list will be tested with different dimensions  Make sure you solve the problem in a generalized way without crashing o You cannot modify the Node.h in any way.  It’s needed in the unit tests as is… o You can add helper functions to Boustrophedonic.h and Boustrophedonic.cpp  All your work should be done in Boustrophedonic.cpp o Make sure you are not leaking memory  You should delete the Node in your remove function o Check both Debug and Release mode
Mar 07, 2023
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here