freepeople性欧美熟妇, 色戒完整版无删减158分钟hd, 无码精品国产vα在线观看DVD, 丰满少妇伦精品无码专区在线观看,艾栗栗与纹身男宾馆3p50分钟,国产AV片在线观看,黑人与美女高潮,18岁女RAPPERDISSSUBS,国产手机在机看影片

正文內(nèi)容

最新譚浩強(qiáng)c程序設(shè)計(jì)課后習(xí)題答案-資料下載頁(yè)

2025-06-26 15:06本頁(yè)面
  

【正文】 ]=a[i1][j1]+a[i1][j]。 for (i=1。in。i++) {for (j=1。j=i。j++) coutsetw(5)a[i][j] 。 coutendl。 } coutendl。 return 0。}include iostreamusing namespace std。int main(){ const int n=4,m=5。 //假設(shè)數(shù)組為4行5列 int i,j,a[n][m],max,maxj。 bool flag。 for (i=0。in。i++) //輸入數(shù)組 for (j=0。jm。j++) cina[i][j]。 for (i=0。in。i++) {max=a[i][0]。 maxj=0。 for (j=0。jm。j++) //找出第i行中的最大數(shù) if (a[i][j]max) {max=a[i][j]。 //將本行的最大數(shù)存放在max中 maxj=j。 //將最大數(shù)所在的列號(hào)存放在maxj中 } flag=true。 //先假設(shè)是鞍點(diǎn),以flag為真代表 for (int k=0。kn。k++) if (maxa[k][maxj]) //將最大數(shù)和其同列元素相比 {flag=false。 //如果max不是同列最小,表示不是鞍點(diǎn)令flag1為 假 continue。} if(flag) //如果flag1為真表示是鞍點(diǎn) {couta[i][[maxj]=maxendl。 //輸出鞍點(diǎn)的值和所在行列號(hào) break。 } } if(!flag) //如果flag為假表示鞍點(diǎn)不存在 coutIt does not exist!endl。 return 0。 } include iostreamusing namespace std。int main(){ const int n=7。 int i,number,top,bott,mid,loca,a[n]。 bool flag=true,sign。 char c。 coutenter data:endl。 cina[0]。 i=1。 while(in) {cina[i]。 if (a[i]=a[i1]) i++。 else coutenter this data again:。 } coutendl。 for (i=0。in。i++) couta[i] 。 coutendl。 while(flag) {coutinput number to look for:。 cinnumber。 sign=false。 top=0。 //top是查找區(qū)間的起始位置 bott=n1。 //bott是查找區(qū)間的最末位置 if ((numbera[0])||(numbera[n1])) //要查的數(shù)不在查找區(qū)間內(nèi) loca=1。 // 表示找不到 while ((!sign) amp。amp。 (top=bott)) {mid=(bott+top)/2。 if (number==a[mid]) {loca=mid。 coutFind number, its position is loca+1endl。 sign=true。 } else if (numbera[mid]) bott=mid1。 else top=mid+1。 } if(!sign||loca==1) coutnumber has not found.endl。 coutcontinu or not(Y/N)?。 cinc。 if (c==39。N39。||c==39。n39。) flag=false。 } return 0。 } include iostreamusing namespace std。int main() {int sum_day(int,int)。 int leap(int year)。 int year,month,day,days=0。 coutinput date(year,month,day):。 cinyearmonthday。 coutyear/month/day。 days=sum_day(month,day)。 /* 調(diào)用函數(shù)一 */ if(leap(year) amp。amp。 month=3) /* 調(diào)用函數(shù)二 */ days=days+1。 cout is the daysth day in this year.endl。 return 0。 }int sum_day(int month,int day) //計(jì)算日期 {int i。 int day_tab[12]={31,28,31,30,31,30,31,31,30,31,30,31}。 for (i=0。imonth1。i++) day+=day_tab[i]。 return(day)。 } int leap(int year) //判斷是否為閏年 {int leap。 leap=year%4==0amp。amp。year%100!=0||year%400==0。 return(leap)。 } include iostreamusing namespace std。int main(){int i,j,upper,lower,digit,space,other。 char text[3][80]。 upper=lower=digit=space=other=0。 for (i=0。i3。i++) {coutplease input line i+1endl。 gets(text[i])。 for (j=0。j80 amp。amp。 text[i][j]!=39。\039。j++) {if (text[i][j]=39。A39。amp。amp。 text[i][j]=39。Z39。) upper++。 else if (text[i][j]=39。a39。 amp。amp。 text[i][j]=39。z39。) lower++。 else if (text[i][j]=39。039。 amp。amp。 text[i][j]=39。939。) digit++。 else if (text[i][j]==39。 39。) space++。 else other++。 } } coutupper case:upperendl。 coutlower case:lowerendl。 coutdigit :digitendl。 coutspace :spaceendl。 coutother :otherendl。 return 0。} include iostreamusing namespace std。int main(){ char a[5]={39。*39。,39。*39。,39。*39。,39。*39。,39。*39。}。 int i,j,k。 char space=39。 39。 for (i=0。i5。i++) // 輸出5行 { coutendl。 // 輸出每行前先換行 cout 。 // 每行前面留4個(gè)空格 for (j=1。j=i。j++) coutspace。 // 每行再留一個(gè)空格 for (k=0。k5。k++) couta[k]。 // 每行輸出5個(gè)*號(hào) } coutendl。 return 0。} include iostreaminclude stringusing namespace std。int main(){ string stars=*****。 int i,j。 for (i=0。i5。i++) // 輸出5行 { cout 。 // 每行前面留4個(gè)空格 for (j=1。j=i。j++) cout 。 // 每行再插入i個(gè)空格 coutstarsendl。 // 輸出5個(gè)*號(hào) } return 0。} include iostreamusing namespace std。int main() {int j,n。 char ch[80],tran[80]。 coutinput cipher code:。 gets(ch)。 coutcipher code:chendl。 j=0。 while (ch[j]!=39。\039。) { if ((ch[j]=39。A39。) amp。amp。 (ch[j]=39。Z39。)) tran[j]=155ch[j]。 else if ((ch[j]=39。a39。) amp。amp。 (ch[j]=39。z39。)) tran[j]=219ch[j]。 else tran[j]=ch[j]。 j++。 } n=j。 coutoriginal text:。 for (j=0。jn。j++) putchar(tran[j])。 coutendl。 return 0。 } include iostreamusing namespace std。int main() {int j,n。 char ch[80]。 coutinput cipher code:。 gets(ch)。 coutcipher code:chendl。 j=0。 while (ch[j]!=39。\039。) { if ((ch[j]=39。A39。) amp。amp。 (ch[j]=39。Z39。)) ch[j]=155ch[j]。 else if ((ch[j]=39。a39。) amp。amp。 (ch[j]=39。z39。)) ch[j]=219ch[j]。 else ch[j]=ch[j]。 j++。 } n=j。 coutoriginal text:。 for (j=0。jn。j++) putchar(ch[j])。 coutendl。 return 0。 } include iostreaminclude stringusing namespace std。int main() {int j。 string ch=I will visit China next week.,tran。 tran=ch。 coutcipher code:chend
點(diǎn)擊復(fù)制文檔內(nèi)容
教學(xué)課件相關(guān)推薦
文庫(kù)吧 www.dybbs8.com
備案圖鄂ICP備17016276號(hào)-1