I have a program where I am to get the user input for any year, and generate a 12 month calendar from that. I will be using the Guassian Method:
w=(d+[2.6m-0.2]+y+[y/4]+[c/4]-2c)%7
where
y= last 2 digits of the year
c= first two digits of the year
d= day of month (1-30)
m= shifted month (March=1, Feb=12)
the main problem I'm having is after
cout << "Enter year: ";
cin>>year;