OK.
Here is what you do. Cause I've been there.
I'm sure you've already searched the internet to steal code from someone else, so I'm not going to bother suggestting that.
Not sure what the problems are like, but if you can get away with getting some from other students and not being caught. Do it.
Or, and this is probably the best(ethically speaking) route. Explain to your prof what happened and see if they will give you another day. MOST professors will. But I would definitely turn SOMETHING in tomorrow. Don't go in empty handed. Give them an exact time you will have it for them tomorrow, and then make sure you get it to them by that time.
Good Luck!