Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Serial number production

Status
Not open for further replies.

Proqrammer

Programmer
Joined
Sep 17, 2006
Messages
64
Hi there,

I'm looking for some general help regarding serial numbers, should serial number represent anything? are there any common algorithms to generate serial numbers? How does it work?
 
Serial numbers shouldn't mean anything.
If they depend on something, you get a dependency, which might produce problems in the future.
Code:
static int serial = 0;

getSerial ()
{
        return ++serial;
}

don't visit my homepage:
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top