mirror of
https://github.com/zach-sb/SENG1120-Assignment-1.git
synced 2025-11-09 00:37:37 +11:00
Working (Messy Code)
This commit is contained in:
parent
d2cfc9abe5
commit
cda8ffb909
@ -180,9 +180,7 @@ void LinkedList::sort()
|
||||
n2 = n1->getNext();
|
||||
|
||||
if(n1->getData() > n2->getData())
|
||||
{
|
||||
//std::cout<<"SWAP"<<std::endl;
|
||||
|
||||
{
|
||||
nSwap=n2->getData();
|
||||
n2->setData(n1->getData());
|
||||
n1->setData(nSwap);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user