分析:根據(jù)題意分析得出:本題主要考查考生的字符串指針或字符串?dāng)?shù)組以及根據(jù)公式進(jìn)字符的ASCII值運算,再根據(jù)運算結(jié)果和條件進(jìn)行相應(yīng)的替代操作,要求考生僅編寫函數(shù)encryptChar()實現(xiàn)轉(zhuǎn)換功能。其中輸入及輸出函數(shù)給出且已調(diào)用,考生不必自己編寫。
編寫函數(shù)encryptChar()的程序內(nèi)容如下:
void encryptChar()
{ int i, j, val ;
for(i=0 ; i for(j=0 ; j val=(xx[i][j]*11) % 256 ; if(! (val<=32 || val>130)) xx[i][j]=val ; } } 數(shù)據(jù)文件IN.DAT內(nèi)容如下: You may WANT A FIELD in field in each record to uniquely identify that1234 record from all other records IN THE FILE. For example, the Employee123456 Number field is unique if you DO NOT ASSIGN the same number to two12345678 different employees, and you never reassign THESE NUMBERS to other12345678 employees. If you wish to FIND OR MODIFY the record belonging to a11111111 specific employee, this unique FIELD SAVES the thouble of determining22222 whether you have the correct record.12345678901234567 If you do not have a unique field, YOU MUST FIND THE first record123456787 the matches your key and determine whether THEN RECORD is the one you33333 want. If it is not the CORRECT ONE, you must search again to find others.4 結(jié)果文件OUT.DAT內(nèi)容如下: Youm+3WAZTAF#EDDinbiWlLinW+AxrWAorLtouniquWl3iLWntib3tx+t1&1<rWAorLbrom+llotxWrrWAorLs#ZTHEF#DE.ForW(+mplW,txWEmplo3WW1&1
計算機等級考試三級數(shù)據(jù)庫技術(shù)七套上機試題
2010計算機等級考試三級數(shù)據(jù)庫技術(shù)筆試模擬試題
計算機等級考試三級數(shù)據(jù)庫技術(shù)上機系統(tǒng)使用說明
北京 | 天津 | 上海 | 江蘇 | 山東 |
安徽 | 浙江 | 江西 | 福建 | 深圳 |
廣東 | 河北 | 湖南 | 廣西 | 河南 |
海南 | 湖北 | 四川 | 重慶 | 云南 |
貴州 | 西藏 | 新疆 | 陜西 | 山西 |
寧夏 | 甘肅 | 青海 | 遼寧 | 吉林 |
黑龍江 | 內(nèi)蒙古 |