Quote Originally Posted by 7stud
http://mathforum.org/dr.math/faq/faq.calendar.html

Using integers will cause integer arithmetic to be performed which will cause the decimal to be truncated. Here is an example:
Code:
int int1 = 10;
int int2 = 7;
int answer = int1/3 + int2/4; 
cout<<answer<<endl;  //4
You can get remainders with the "modulus" operator or remainder operator: %. Here is an example:
Code:
cout<<int1%3<<endl; //1
These are horrible parameter names:
Code:
string DayoftheWeek(int a,int b, int year)
What is an 'a'? What is a 'b'?
Where do you suggest I put that in?