0. Please edit your question and wrap your code in the appropriate tags.
1. "Not running" isn't very descriptive. Are you failing to hit the enter key after typing the name of the program ina console window, are you only building the program but not running it from an IDE, or perhaps, you're running the program and it produces unexpected output..
2. The program runs just fine.
3. This is the output I get when running from the console. (I assume you understand what argv refers to. Hint: it's not a 4 character long input. argv would hold "001-deleteMePlease" "001-deleteMePlease.exe")
D:\code\001-deleteMePlease\bin\Release>001-deleteMePlease.exe 1 2 3 2000
Name: William Strickland
Is Leap Year
2000 is a leap year
"When I was 5 years old, my mother always told me that happiness was the key to life. When I went to school, they asked me what I wanted to be when I grew up. I wrote down 'happy'. They told me I didn't understand the assignment, and I told them they didn't understand life." - John Lennon
I have learned the principles of OOP and implementations in both java and C++ either on my own or in my school courses but we only grazed it. At this point, I feel very uncomfortable with OOP and I need a good resource that will provide me with a great deal of problems that require OOP to solve (or are best solved using object oriented approaches), and their respective answers with clean code and good practices. I have had very very little practice with OOP and want to practice as much as possible to get comfortable with it. I have been searching a lot but I can't seem to find a good resource.
Optimally, I would like it to begin with very trivial questions and progressively become more and more difficult.
I want to generate a dump file automatically whenever the application crashed/hanged. Is there any option to do it or how to do it programatically as the developer don't know when that application crashes at client location.
AFAIK Dump Files are managed by the OS - whichever it is - so you should look on the OS documentation. It is probable that you need to instruct the OS that you want a dump file and of which kind you desire (short, long, kernel...).