steve101
Member
Registered: 25th Oct 04
Location: Kilmarnock, Ayrshire, Scotland
User status: Offline
|
Hey guys, I'm trying to learn c++ and I'm tackling something out of personal interest, but I can't get to grips with something thats apparently very simple.
What I want to do is sort a linked list.
I have the struct set up as follows
struct A{
int price;
int pno;
int qty;
int tel;
bool actioned;
};
struct Node{
Node *previous;
A data;
Node *link;
};
I want to sort by 'pno' in ascending order. Can anyone help me out?
Thanks
|