Article from wikihow:
This is an extremely basic yet effectual method to follow if you feel like an absolute loser. Life does go on!
Steps
As hard as it might sound, whatever the situation, you must remain calm. Especially if you are in a public place, you can't afford to go around acting like a sore loser, even if you think you are one. make yourself calm.
People always say, 'Learn from your mistakes. There is no point in crying over spilt milk, all you have to do is take a deep breath and move on.
Take your time. People don't recover from serious mental changes such as failure over night, it takes time for them to heal.
You have to keep these feelings to yourself. Don't bottle them up, but don't go taking your anger or misery out on others.
Write down your personal goals to help you move on with this traumatic failure. Try to analyse the problem. Does it actually serve as a problem or are you over-stressed over nothing?
Failing is great once in a while! As crazy as it sounds, if you're new to this feeling, its entirely different. 'So what? You failed, you've given failing a go.'
Tips
Don't expect overnight miracles to occur, ...