if (month==1){
cout<<"\t\tJanuary"<
numdays=31;
}
else if (month==2){
cout<<"\t\tFebuary"<
numdays=28;
}
else if (month==3){
cout<<"\t\tMarch"<
numdays=31;
}
else if (month==4){
cout<<"\t\tApril"<
numdays=30;
}//end else if
else if (month==5){
cout<<"\t\tMay"<
numdays=31;
}
else if (month==6){
cout<<"\t\tJune"<
numdays=30;
}
else if (month==7){
cout<<"\t\tJuly"<
numdays=31;
}
else if (month==8){
cout<<"\t\tAugust"<
numdays=31;
}
else if (month==9){
cout<<"\t\tSeptember"<
numdays=30;
}
else if (month==10){
cout<<"\t\tOctober"<
numdays=31;
}
else if (month==11){
cout<<"\t\tNovember"<
numdays=30;
}else if (month==12){
cout<<"\t\tDecember"<
numdays=31;
}
cout<<"\tS M T W T F S"<
cout<<"----------------------------------"<
cout.setf(ios::right);
cout.width((days+5)*(days=4));
cout<<"1";
days++;
for(int num=2; num<=numday
2006-10-26
05:51:48
·
3 answers
·
asked by
shir-o-khorshid
1
in
Computers & Internet
➔ Programming & Design
its in c++ and i need the for statement to be corrected, i think theres an if else statement inside the for body
2006-10-26
05:53:35 ·
update #1