if (month==1){
cout%26lt;%26lt;"\t\tJanuary"%26lt;%26lt;endl;
numdays=31;
}
else if (month==2){
cout%26lt;%26lt;"\t\tFebuary"%26lt;%26lt;endl;
numdays=28;
}
else if (month==3){
cout%26lt;%26lt;"\t\tMarch"%26lt;%26lt;endl;
numdays=31;
}
else if (month==4){
cout%26lt;%26lt;"\t\tApril"%26lt;%26lt;endl;
numdays=30;
}//end else if
else if (month==5){
cout%26lt;%26lt;"\t\tMay"%26lt;%26lt;endl;
numdays=31;
}
else if (month==6){
cout%26lt;%26lt;"\t\tJune"%26lt;%26lt;endl;
numdays=30;
}
else if (month==7){
cout%26lt;%26lt;"\t\tJuly"%26lt;%26lt;endl;
numdays=31;
}
else if (month==8){
cout%26lt;%26lt;"\t\tAugust"%26lt;%26lt;endl;
numdays=31;
}
else if (month==9){
cout%26lt;%26lt;"\t\tSeptember"%26lt;%26lt;endl;
numdays=30;
}
else if (month==10){
cout%26lt;%26lt;"\t\tOctober"%26lt;%26lt;endl;
numdays=31;
}
else if (month==11){
cout%26lt;%26lt;"\t\tNovember"%26lt;%26lt;endl;
numdays=30;
}else if (month==12){
cout%26lt;%26lt;"\t\tDecember"%26lt;%26lt;endl;
numdays=31;
}
cout%26lt;%26lt;"\tS M T W T F S"%26lt;%26lt;endl;
cout%26lt;%26lt;"-----------------------...
cout.setf(ios::right);
cout.width((days+5)*(days=4));
cout%26lt;%26lt;"1";
days++;
for(int num=2; num%26lt;=numday
Someone pleeeeeeeeeease finish this calendar program in c++?
if (month==1){
cout%26lt;%26lt;"\t\tJanuary"%26lt;%26lt;endl;
numdays=31;
}
else if (month==2){
cout%26lt;%26lt;"\t\tFebuary"%26lt;%26lt;endl;
numdays=28;
}
else if (month==3){
cout%26lt;%26lt;"\t\tMarch"%26lt;%26lt;endl;
numdays=31;
}
else if (month==4){
cout%26lt;%26lt;"\t\tApril"%26lt;%26lt;endl;
numdays=30;
}//end else if
else if (month==5){
cout%26lt;%26lt;"\t\tMay"%26lt;%26lt;endl;
numdays=31;
}
else if (month==6){
cout%26lt;%26lt;"\t\tJune"%26lt;%26lt;endl;
numdays=30;
}
else if (month==7){
cout%26lt;%26lt;"\t\tJuly"%26lt;%26lt;endl;
numdays=31;
}
else if (month==8){
cout%26lt;%26lt;"\t\tAugust"%26lt;%26lt;endl;
numdays=31;
}
else if (month==9){
cout%26lt;%26lt;"\t\tSeptember"%26lt;%26lt;endl;
numdays=30;
}
else if (month==10){
cout%26lt;%26lt;"\t\tOctober"%26lt;%26lt;endl;
numdays=31;
}
else if (month==11){
cout%26lt;%26lt;"\t\tNovember"%26lt;%26lt;endl;
numdays=30;
}else if (month==12){
cout%26lt;%26lt;"\t\tDecember"%26lt;%26lt;endl;
numdays=31;
}
cout%26lt;%26lt;"\tS M T W T F S"%26lt;%26lt;endl;
cout%26lt;%26lt;"-----------------------...
cout.setf(ios::right);
cout.width((days+5)*(days=4));
cout%26lt;%26lt;"1";
days++;
for(int num=2; num%26lt;=numday
day9jhgdheyyy
ekjreijt
64949rrmkfkj59,k
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment