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

正文內(nèi)容

c語言期末復(fù)習(xí)(文件)

2025-06-25 13:33 上一頁面

下一頁面
 

【正文】 10。 B、 int n=10,a[n]。 D、define SIZE 10 int a[SIZE]。C、 int a[ ] = {0} 。C、 int a[2][4]={{1,2,3},{4,5},{6}} 。 B、 char s[5]={‘a(chǎn)’,’b’,’c’,’d’,’e’,’\0’}。請(qǐng)?zhí)羁?,完善程序。x)。______(2)___________;}a[___(3)____]=x。i++) printf(“%4d”,a[i])。(提示:中文字符是兩個(gè)字節(jié),且數(shù)值均大于128的字符)。參考答案一、 選擇題A D A A A B D A二、程序填空(1) i+1(2) i=i1(3) ++i(4) n二、 編程題 main(){int i,j,min,temp,a[11]。i++) {printf(“a[%d=”,i)。 For(i=1。 For(i=1。j=10。 a[min]=temp。i++) Printf(“%5d”,a[i])。 For(i=0。 For(j=0。j++) {if(text[i][j]’A’amp。amp。text[i][j]=’9’) Dig++。i3。 Printf(“digit:%d\n”,dig)。 Printf(“enter array a:\n”)。a[i])。i++)Printf(“%4d”,a[i])。a[i]=a[Ni1]。iN。 Return z。 Double z。 return z。c=abc(a,b)。 u=v。 main() {int x3=10,x4=20。}sub(int x,int y){x1=x。Printf(“%d\n”,sub(i))。 return (a)。}Main(){int a。 Printf(“\n”)。i=sqrt(x)。}Main(){int x。 Else printf(“%d is not a prime\n.”,x)。 Else f=fac(n1)*n。 Printf(“input an interger number:”)。 printf(“%d!=%”,n,y)。Max=min=array[0]。 Else if(array[i]min)min=array[i]。}Main(){float ave,score[10]。i++) Scanf(“%f”,amp。} 第八章 預(yù)處理命令一、 選擇題 對(duì)宏命令的處理是_ ___A、 在程序執(zhí)行時(shí)進(jìn)行的B、 在對(duì)程序中其他語句進(jìn)行編譯前進(jìn)行的C、 在程序連接時(shí)進(jìn)行的D、 與程序中其他語句同時(shí)進(jìn)行編譯 下面對(duì)編譯預(yù)處理的敘述正確的是_ _____A、 預(yù)處理命令只能位于程序的開始處B、 預(yù)處理功能是指完成宏替換和文件包含的調(diào)用C、 只要行首以“”標(biāo)識(shí)的控制行都是預(yù)處理命令D、 編譯預(yù)處理就是對(duì)源程序進(jìn)行初步的語法檢查二、 編程題 輸入一行字母字符,根據(jù)需要設(shè)置條件編譯,使之能使將字母全改為大寫輸出,或全改為小寫字母輸出。while((c=str[i]!=’\0’){i++。 elseIf(c=’A’amp。}}第九章 指針一、 選擇題 指針是一種____A、 標(biāo)識(shí)符B、 變量C、 內(nèi)存地址D、 運(yùn)算符 顯示指針變量P中的值,可以使用命令_____A、 Printf(“%d”,p)。 為指針變量P輸入整型變量i的地址,可以使用命令____A、 Scanf(“%p”,amp。I。int *q。D、 r=p。C、 Float s[m+n]。則下面表達(dá)式正確的是_____A、 s=p+s。 定義整型指針變量p和q,下面操作不正確的是_______A、 Int *p,q=null。 若有定義int a[]={1,2,3},b[3]={1,2,3}。 寫一個(gè)函數(shù),將一個(gè)3*3的矩陣轉(zhuǎn)置。 Printf(“input three integers n1,n2,n3:”)。n3)。n2。 if(n1n3) swap(p1,p3)。 p=*p1。 Char *str[20]。 Printf(“The length of string is %d.”,len)。P++。 For(i=0。a[i][1],amp。move(p)。i++)printf(“%d %d %d\n”,a[i][0],a[i][1],a[i][2])。i++) For(j=i。 *(pointer+3*j+i)=t。 Scanf(“%d”,amp。in。num[0]。in。 For(i=0。temp=*p1。int x,y,z}。float x,y,z}。char y。要求把兩個(gè)鏈表合并,按學(xué)號(hào)升序排列。}。 Void print(struct student *)。 sum=sum+n。 abh=insert(ahead,bhead)。 p1=p2=(struct student *)malloc(LEN)。scanf(“%ld,%d”,amp。while(p1num!=0) {n=n+1。 p1=(struct student*)malloc(LEN)。 } p2next=null。 pb2=pb1=bh。 p1=pa1next。 pb2next=pa1。amp。(pa1next==null)) pa1next=pb1。 p=head。}第十一章 位運(yùn)算編程題 設(shè)計(jì)一個(gè)函數(shù),使給出一個(gè)數(shù)的原碼,能得到該數(shù)的補(bǔ)碼參考答案Main(){unsigned int a。a)。0100000。 } 第十二章 文件一、 選擇題在C語言,文件由_____A、 記錄組成B、 由數(shù)據(jù)行組成C、 由數(shù)據(jù)塊組成D、 由字符(字節(jié))序列組成C語言中的文件類型只有____A、索引文件和文本文件兩種B、ASCII文件和二進(jìn)制文件兩種C、文本文件一種D、二進(jìn)制文件一種C語言中文件的存取方式___A、只能順序存取B、只能隨機(jī)存?。ɑ蚍Q直接存取)C、可以順序存取,也可隨機(jī)存取D、只能從文件的開頭進(jìn)行存取 參考答案 選擇題D B C 。 else z=value。 } Unsigned int getbits(unsigned value) {unsigned int z。 Printf(“\ninput an octal number:”)。 p=pnext。 } Void print(struct student *head) {struct student *p。 If((pb1numpa1num)amp。 pb2=pb1。 else pa2next=pb1。amp。 }Struct student *insert(struct student*ah,struct *bh) {struct student *pa1,*pa2,*pb1,*pb2。p1num,amp。 Else p2next=p1。p1score)。 scores of student:\n”)。 }Struct student *creat(void) {struct student *p1,*p1,*head。 bhead=creat()。 Printf(“\ninput list a:\n”)。Int n,sum=0。Int score。abc s1,s2。float x,y,z}。int x,y,z}。*p2=temp。i++) {p1=p+i。 }Sort(char p,int m) {int i。 Printf(“now,the sequence is:\n”)。num[i])。 Printf(“please input these numbers:\n”)。 Char *p,num[20]。j++) {t=*(pointer+3*i+j)。For(i=0。for(i=0。p=amp。i++) Scanf(“%d %d %d”,amp。 } main(){int a[3][3],*p,i。 N=0。 Scanf(“%s”,str)。*p2=p。 printf(“now,the order is:%d,%d,%d\n”,n1,n2,n3)。n3。n1。n1,amp。參考答案一、 選擇題C D C B C A C D D二、填空題 單元地址 基類型 Null 數(shù)組 顯式類型變換二、 編程題 Main() {int n1,n2,n3。 寫一個(gè)函數(shù),求一個(gè)字符串的長(zhǎng)度。C、 Int *p,*q=null,null。C、 s[2]=p[4]。 若有定義int a[]={1,2,0}。下面定義不正確的是______A、 Float s[m]。B、 q=r。I。B、 *p=i。C、 Printf(“%d”,*p)。c=’Z’) c=c+32。amp。 Int I。 Ave
點(diǎn)擊復(fù)制文檔內(nèi)容
教學(xué)教案相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號(hào)-1