English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

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

3 answers

else if (month==3){
cout<<"\t\tMarch"< numdays=31;
}cout.setf(ios::right);
cout.width((days+5)*(days=4));
cout<<"1";
days++;
for(int num=2; num<=numday

2006-10-26 05:54:05 · answer #1 · answered by bor_rabnud 6 · 0 0

A switch statement could have been easier

2006-10-26 16:53:21 · answer #2 · answered by Chatmasterflex 3 · 0 0

download one from microsoft excel and there templates save your time

2006-10-26 12:52:58 · answer #3 · answered by Juleette 6 · 0 1

fedest.com, questions and answers