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

正文內(nèi)容

t102-c高級(jí)考試試卷a(已改無錯(cuò)字)

2022-08-21 00:38:46 本頁面
  

【正文】 ,b)。} (6)下面程序的功能是:對(duì)字符串從小到大進(jìn)行排序并輸出,請(qǐng)?zhí)羁铡?include include sort(char *a[],int n) { int i, j。 char *p。 for(j=1。j=n1。j++) for(i=0。 ___________________。 i++) if( ___________________ 0) { p=a[i]。 a[i]=a[i+1]。 a[i+1]=p。}} main() { int i。 char *book[]={itisme,itisyou,howareyou,fine,goodnight,goodbye}。 sort( ___________________ )。 for(i=0。i6。i++) printf(%s\n,book[i])。} (7)下面的函數(shù)是完成1~n的累加,完成函數(shù)。 a(int k) {if(k=0)printf(error\n)。 if(k==1) ___________________ 。 else___________________ 。} (8) 以下min函數(shù)的功能是:查找?guī)в蓄^結(jié)點(diǎn)的單向鏈表中,結(jié)點(diǎn)數(shù)據(jù)域的最小值作為函數(shù)值返回。 struct node { int data。 strcut node *next。 }。 int min(struct node *frist) { struct node *p。 int m。 p=firstnext。 m=pdata。 for(p=pnext。p!=NULL。p= ) if( ) m=pdata。 return m。 }三、以下為Windows NT下的32位C++程序,請(qǐng)計(jì)算sizeof的值(4分)typedef struct hashT{ char key。 int num。 char name[20]。 char sex。}HashTable,*t請(qǐng)計(jì)算sizeof (HashTable ) = sizeof ( t ) = typedef struct node{}。請(qǐng)計(jì)算sizeof(struct node)=四、簡答題(6分)頭文件中的 ifndef/define/endif 干什么用?include 和 include “” 有什么區(qū)別?const 有什么用途?(請(qǐng)至少說明兩種)五、有關(guān)內(nèi)存的思考題(8分)void GetMemory(char *p){p = (char *)malloc(100)。}void Test(void) {char *str = NULL。GetMemory(str)。 strcpy(str, hello world)。printf(str)。}請(qǐng)問運(yùn)行Test函數(shù)會(huì)有什么樣的
點(diǎn)擊復(fù)制文檔內(nèi)容
環(huán)評(píng)公示相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖片鄂ICP備17016276號(hào)-1