I have an array containing names of items. I want to give the user the option to create items without specifying their name, so my program will have to supply a unique defau
Why not just keep track of the maximum number to date, and when you need a new one, increment it?