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

正文內(nèi)容

20xx全國計算機等級考試三級數(shù)據(jù)庫技術(shù)上機試題題目及答案匯編100題 (最新)-預(yù)覽頁

2024-11-15 15:43 上一頁面

下一頁面
 

【正文】 加 1。 i++) if (isP(a[i])) { b[count] = a[i]。 i++) for (j=i+1。 b[j] = value。 【答案】 void change(char*s) { int i, strl。 for (i=0。 } :找出所有 100 以內(nèi)(含 100)滿足 i、 i+ i+10 都是素數(shù)的整數(shù) i( i+10 也在 100 以內(nèi))的個數(shù)count 以及這些 i 之和 sum。i=90。amp。大寫字母仍為大寫字母,小寫字母仍為小寫字母,其他字符丌變,最后把已處理的字符串仍按行重新 存入字符串?dāng)?shù)組 string 中。 char *pf。 while (*pf) { if (*pf == 39。 else if (*pf=39。 *pf=39。 } } } countValue(),它的功能是:求出 1~1000 之內(nèi)能被 7 或 11 整除但丌能同時被 7 或 11 整除的所有整數(shù),將它們放在數(shù)組 a 中,并通過 n 返回這些數(shù)的個數(shù)。 for (i=1。 i%11) { *a = i。amp。 } } 300 個四位數(shù),并已調(diào)用讀函數(shù) Rdata()把這些數(shù)存入數(shù)組 a 中,請編寫函數(shù) primeCal(),其功能是:求出這些四位數(shù)中素數(shù)的個數(shù)count,再求出所有滿 足此條件的四位數(shù)的平均值 Ave1 以及丌滿足此條件的四位數(shù)的平均值 Ave2。 【答案】 void primeCal() { int i。 count++。 } :尋找并輸出11~999 之間的數(shù) m,它滿足 m、 m2 和m3 均為回文數(shù)。最后,把結(jié)果輸出到文件 中。 strl = strlen(temp)。 i++) if (temp[i] != temp[strl]) break。把結(jié)果 t t ave 輸出到 中。 else t2++。得到的新字符分別存放在原字符串對應(yīng)的位置上,最后已處理的字符串仍按行重新存入字符串?dāng)?shù)組 string 中。 char ch。 ch = string[i][strl1]。 string[i][j] += string[i][j1]。 【答案】 void evenvalue() { int bb[4]。 i++) { bb[0] = a[i]/1000。 for (j=0。 break。 icount1。 b[i] = b[j]。原始數(shù)據(jù)文件存放的格式是:每行的寬度均小于 80 個字符,含標(biāo)點符 號和空格。 imaxline。 amp。 StrResult[i][j] = 0。 while (StrResult[i][j]) { while (StrResult[i][j]!=39。 StrResult[i][j]) j++。 } StrResult[i][j] = 0。 k = j。原始數(shù)據(jù)文件存放的格式是:每行的寬度均小于 80 個字符,含標(biāo)點符號和空格。 i++) for (j=0。 StrResult[i][j]!=39。 for (l=0。 strl = strlen(StrResult[l])。amp。 pp[0] = StrResult[l][i]。 strcpy(pp, )。amp。 pp[0] = StrResult[l][i]。 strcpy(pp, )。 } } :把 str 字符串中的所有字母改寫成該字母的下一個字母,字母 z 改寫成字母 a。 【答案】 void CharChange(char *str) { while (*str) { if (*str==39。) *str = 25。其中,金額 =單價數(shù)量。 【答案】 void AscendSort() { int i, j。 i++) for (j=i+1。 sell[j] = temp。 } } } 200 個四位數(shù),并已調(diào)用讀函數(shù) RData()把這些數(shù)存入數(shù)組 a 中,請編寫函數(shù) evenVal(),其功能是:若一個四位數(shù)的千位上的數(shù)字值小于等于百位上的數(shù)字值,百位上的數(shù)字值小于等于十位上的數(shù)字值,以及十位上的數(shù)字值小于等于個位上的數(shù)字值,并且該四位數(shù)是偶數(shù),則統(tǒng)計出滿足此條件的個數(shù) count,并把這些四位數(shù)按從小到大的順序存入數(shù)組 b 中。 int a1, a2, a3, a4, k。 a2 = a[i]%1000/100。amp。amp。 icount1。 b[i] = b[j]。最后調(diào)用函數(shù) WData(),把結(jié)果輸出到文件 中。 for (i=10。 c = i*i%10。最后調(diào)用寫函數(shù) WData(), 把結(jié)果輸出到 文件中。 【答案】 void jsValue() { int i, thou, hun, ten, data, j。 hun = a[i]%1000/100。 count++。 jcount。 } } 27 函數(shù) Rdata()實現(xiàn)從文件 中讀取一篇英文文章存入到字符串?dāng)?shù)組 string中,請編寫函數(shù) CharLeft(),其功能是:以行為單位把字符串中所有字符的 ASCII值左移 4 位,如果左移后,其字符的 ASCII值小于等于 32 或大于 100,則原字符保持丌變,否則就把左移后的字符 ASCII 值再加上原字符 ASCII 值,得到新的字符仍存入原字符串對應(yīng)的位置上。 char ch。 for (j=0。amp。最后調(diào)用函數(shù) WData()把所求的結(jié)果輸出到 文件中。 i++) { if (!original[i]) break。 totavg += original[i]。 【答案】 void spellVal() { int i, thou, hun, ten, data, j。 i++) { thou = a[i]/1000。 if (thou==0 || data==0) continue。amp。amp。 it1。 b[i] = b[j]。 注意:部分程序已經(jīng)給出。 iMAX5。 } else { flag = 0。 a[i]%2==0) { b[count] = a[i]。 i++) for (j=i+1。 b[j] = flag。請編寫函數(shù) SortDat(),其功能要求:按金額從大到小進行排列,若金額相同,則按產(chǎn)品代碼從大到小進行排列,最終排列結(jié)果仍存入結(jié)構(gòu)數(shù)組 sell中。 for (i=0。 j++) if (sell[i].sum sell[j].sum) { temp = sell[i]。 sell[i] = sell[j]。 計算方差的公式如下: 其中: N 為偶數(shù)的個數(shù), evennum[i]為偶數(shù), ave2 為偶數(shù)的平均值。 i1000。 ave2 += evennum[i]。 for (i=0。新序列中,比 K1 小的數(shù)都在 K1的前面(左面),比 K1 大的數(shù)都在 K1 的后面(右面),要求編寫函數(shù) NumSort()實現(xiàn)此功能。 for (i=0。 j9。 k) a[i][k] = a[i][k1]。最后調(diào)用函數(shù) WData(),把結(jié)果 count和 sum 輸出到 文件中。 i++) { hun = i/100。 for (j=2。 sum += i。 原始數(shù)據(jù)文件存放的格式 是:每行的寬度均小于 80 個字符。 imaxline。 amp。) || *pf*11%256=32) { pf++。 } } } RData()實現(xiàn)從文件 中讀取一篇英文文章,存入字符串?dāng)?shù)組 str 中,請編寫函數(shù) encryptChar(),其功能是:按給定的替代關(guān)系對數(shù)組 str 中的所有字符進行替代后,仍存入數(shù)組 str 的對應(yīng)位置上。 【答案】 void encryptChar() { int i。 i++) { pf = str[i]。amp。 continue。其中:金額 =單價數(shù)量。 【答案】 void SortDat() { int i, j。 i++) for (j=i+1。 sell[j] = temp。 } } } 中存有若干個(少于 200 個)四位數(shù)字的正整數(shù),函數(shù)RData()讀取若干個正整數(shù)并存入數(shù)組original 中。 int ab。 i++) { if (original[i] 0) totNum++。 data = original[i]%10。 } } totave = (double)sum/totCnt。 【答案】 void countValue() { int S, I, X, N, E。 S++) for (I=0。 X++) for (N=1。 E++) { SIX = S*100+I*10+X。 } } } 中存有 100個產(chǎn)品銷售記錄,每個產(chǎn)品銷售 記錄由產(chǎn)品代碼code(字符型 4 位)、產(chǎn)品名稱 name(字符型 10 位)、單價 uprice(整型)、數(shù)量amount(整型)、金額 sum(長整型) 5部分組成。最后調(diào)用函數(shù)WData(),把結(jié)果輸出到文件 中。 i99。 sell[i] = sell[j]。 sell[j] = temp。 例如,位置 0 1 2 3 4 5 6 7 源字符串 h g f e d c b a 則處理后字符串 h a f c d e b g 【答案】 void oddSort() { int i, j, k, strl。 i++) { strl = strlen(str[i])。 kstrl。 } } } 200 個四位數(shù),并已調(diào)用讀函數(shù) RData()把這些數(shù)存入數(shù)組 a 中,請編寫函數(shù) evenVal(),其功能是:依次從數(shù)組 a 中取出一個四位數(shù),如果該四位數(shù)連續(xù)大于該四位數(shù)以前的 5 個數(shù)且該數(shù)是偶數(shù)(該四位數(shù)以前丌滿 5 個數(shù),則丌統(tǒng)計),則統(tǒng)計出滿足此條件的個數(shù) count 并把這些四位數(shù)按從大到小的順序存入數(shù)組 b 中。 iMAX。 } else { flag = 0。 a[i]%2==0) { b[count] = a[i]。 i++) for (j=i+1。 b[j] = flag。請編寫函數(shù) SortDat(),其功能是:按金額從大到小進行排列,若金額相等,則按產(chǎn)品代碼從小到大進行排列,最終排列結(jié)果仍存入結(jié)構(gòu)數(shù)組 sell中。 for (i=0。 j++) if (sell[i].sum sell[j].sum) { temp = sell[i]。 sell[i] = sell[j]。最后調(diào)用函數(shù) Wdata(),把結(jié)果 str輸出到 文件中。 char *pf。 while (*pf != 0) { if ((*pf*11%256=39。 *pf*11%256=39。 } *pf = *pf*11%256。 例如, 6712, 6+2=7+1,則該數(shù)滿足條件存入數(shù)組 b 中,且個數(shù)count=count+1。 i300。 data = a[i]%10。 icount1。 b[i] = b[j]。 例如, 9123, 91230,則該數(shù)滿足條件,計算平均值 ave1,且個數(shù)count=count+1。 i300。 data = a[i]%10。 ave2 += a[i]。最后 main()函數(shù)調(diào)用寫函數(shù) Wdata(),把結(jié)果 count 以及數(shù)組 b 中符合條件的四位數(shù)輸出到 文件中。 i200。 data = a[i]%10。 if (isprime(ab) amp。 } } for (i=0。 j++) if (b[i] b[j]) { data = b[i]。現(xiàn)要求按出圈次序,每 10 人一組,給出這 n 個人的順序表。 【答案】 void Josegh(void) { int i, j, s1, w。 i++) p[i1] = i。 if (s1 == 0) s1 = i。 j++) p[j1] = p[j]。最后調(diào)用函數(shù)
點擊復(fù)制文檔內(nèi)容
醫(yī)療健康相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1