If you hit a car and no one is around, the best thing to do is to leave a note on the windshield with your contact information. If there is significant damage, you may want to call the police.