corsasport.co.uk
 

Corsa Sport » Message Board » Off Day » Geek Day » C++ Help Please


New Topic

New Poll
  Subscribe | Add to Favourites

You are not logged in and may not post or reply to messages. Please log in or create a new account or mail us about fixing an existing one - register@corsasport.co.uk

There are also many more features available when you are logged in such as private messages, buddy list, location services, post search and more.


Author C++ Help Please
steve101
Member

Registered: 25th Oct 04
Location: Kilmarnock, Ayrshire, Scotland
User status: Offline
   31st Jul 08 at 22:13   View User's Profile U2U Member Reply With Quote

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

 
New Topic

New Poll

Corsa Sport » Message Board » Off Day » Geek Day » C++ Help Please 24 database queries in 0.0085509 seconds