I am not familiar with "disk doctor" but if you used Disk Utility to repair or reformat the hard disk, and it failed again, it is very likely the drive itself needs to be replaced. It cannot be repaired.
If Disk Utility cannot repair a hard disk it definitely needs replacement.
All 2012 MacBook Pro models are less than a year old and therefore covered under Apple's standard one year warranty. Have them fix it.
Either HD Macintosh or windows drive are broken frequently! I think it is a hardware problem.
I started up with OSX , it requested a password while I hadn't defined any before, I tried different combinations but it didn't work . So I restarted again and since then it is shutting down after each start up. Fortunately the windows partition is still working so I can transfere data to an external hard drive.