@pacohope said:
Code Snippet
struct deltanode {
int data;
void *next;
int delta;
};
struct doublelist {
int data;
void *next;
void *prev;
};
<--- point of the delta trick
You
@pacohope said:
Code Snippet
struct deltanode {
int data;
void *next;
int delta;
};
struct doublelist {
int data;
void *next;
void *prev;
};
<--- point of the delta trick
You
[quote user="m0ffx"]
In a major UK supermarket (I don't know which one), they have handheld barcode scanners that you take round with you when you shop. Not sure how produce is handled.[/quote]
This happens in Sainsbury's and possibly others. Produce is handled by weighing machines in the produce section that print out barcode stickers. Items that the handheld scanner don't read are OK; as you pay at the same checkout as everyone else, they will be scanned in there instead. Of course this is a system based on trust, occasionally they ask to rescan all of your shopping to make sure you're honest - a real PITA if you have a trolley full of frozen food...
(It saves time as they can bag the shopping as they put it in the trolley, otherwise the threat of rescan wouldn't make it worthwhile.)