WaltP was negative about the fact that I have used main(); and about the fact that my program will crash if you enter a character instead of a value.
Not just me. Others pointed it out first and I agreed. And you argued that your program was perfect. When asked "what happens when you input a character?" you responded:
You: The program will crash. You have to fill in a number.
You: I have tested my program already. I solved every single mistake which I have made. The program also takes to account with leap years and with correctionyears.
You: It is a perfect program now. :-D
You: It is. The program will prevent you from entering invalid data.
You: When you enter characters instead of numbers, the program doesn't know what to do with it, so it crashes.
Crashing is an error, not a valid way to prevent invalid data
See the pattern?
You: In some if-statements I am using main(); to restart the program. That is not bad!
More arguing about a bad practice.
I asked WaltP which code I have to use to restart my program is main(); is not good enough, and which code I have to use so my program won't crash if you enter a character instead of a value.
And why should I wish to help after all the above attitude, arguing, telling us we are wrong? What makes you think we'd be interested in helping after all that?
Yes, I can help you with that. I've done it many times on these boards. But you need to lose the I know more than you attitude before that happens.
And you continued:
Lucaci Andrew: All of your souce code is in one function, and that function is the specific starting function of your program - what is wrong with you? Haven't you heard about other functions, classes maybe, structures? This is not Python to just use any function as the starting point of your program, then to recursivelly call it to "restart your program".
You: In C++, it isn't necessary to use different functions in this situation. It is a possibility, but the compiler will still be able to compile the code fine, even if it has only one function. The program, with only one long function, will also run without any problems.
More arguing.
You: Just like you can use "\n" to go to the next line, or "endl". It's exactly the same.
More false information claiming it's true.
You: Note that there are specific items from C++ that work only on some OS. Linux is different from Windows, and if you implement some specific items from Windows, don't expect to work on Linux.
Of course there are different operating systems. Linux is different than Windows, but the program language, C++, should be the same.
But refusing to understand that using something that is Windows-based in the code makes the code not compile on linux!! therefore it is not standard C++.
You: Now, I want to fix the problem that if I enter a character instead of a value, the program will crash. WaltP and deceptikon are refusing to help me. They just say that my program is bad and that I am trolling.
I never said you were trolling.
As I said, lose the attitude, the arrogance, and open your mind to learn the facts, and you'll get help from us. But so far, that hasn't happened.
NathanOliver: That’s not to say you shouldn’t argue a point if you don’t agree but if you are going to, make sure you have some clear examples and/or references to back you up.
Exactly. And I've freely admitted when I've been wrong and someone corrects me.
You: WaltP and Suzie999 aren't helping or giving advises. They are just bashing my program, without telling me which code I have to use to solve the problems I have made.
We offered, but you argued rather than listened.