For "printCalBody (int& daysWeek, int inMonth)" I get error msg's (1) expected primary expression before "int" for this line. On following line I get error "expected ';' before '{' token, can someone explain what I did wrong here, just not getting it?
int main()
{
int currentMonth;
int inputYear;
int inMonth;
int daysWeek;
currentMonth = 5;
do
{
cout << "input the year you would like a calendar for [1]2010 or [2]2011: ""\n";
cin >> inputYear;
cout << "What day of the week is the 1st on for this month? " "\n\n";
cout << "Pick from the menu & enter the number: " "\n\n";
cout << "[0]Sun ,[1]Mon ,[2]Tues ,[3]Wed ,[4]Thu ,[5]Fri ,[6]Sat" "\n";
daysWeek = reader.readInt(0, 6);
}
while (currentMonth <= 12);
{
printCalHead (currentMonth);
if(currentMonth == 4 || currentMonth == 6 || currentMonth == 9 || currentMonth == 11)
inMonth = 30;
else
{
inMonth = 31;