This code deletes n columns from ExSan(n, m) ---> ExSan(p, q-n)
ExSan++ ExSan 1 /***********START***************/ 2 //legend 3 // n: north s: south e: east w: west ptr: pointer 4 // This code deletes N columns from the data structure ExSan 5 void Net::colDeleteNet(NETPTR net, unsigned short deleteNcols) { // the number of deleted c 6 7 ROWPTR rptr(nullptr); 8 9 if (net->get_net_cols() > 2) { 10 for (unsigned short col = 1; deleteNcols; col++) { 11 //opposite to insert 12 rptr = net->go_to_row(net, 1); 13 for (unsigned short row = 1; row <= net->get_net_rows(); row++) {//ok 14 rptr->get_backward_ptr()->get_previous_ptr()->set_next_ptr(nullptr); //pending in inse 15 rptr->get_backward_ptr()->set_previous_ptr(nullptr); //pending in insert 16 17 if (row == 1) {//ok