0
Help me find the error
I tried to write a program to find out the date of the first Monday of a given month of a given year. For some inputs, it's evaluating the correct output but it's going wrong elsewhere. Please show me the bug if you can. here's my code : https://code.sololearn.com/cTin3HwLp85P/#cpp
1 Odpowiedź
0
just an educated guess without looking too much at your code: Leap Years? it doesn't look like you're accounting for February's variable amount of days. see this for reference:
https://code.sololearn.com/cOOB2JwUaUC8/?ref=app