【正文】
* next。}*linklist。struct stu *creatlist(int n){ int I。 //h為頭結(jié)點,p為前一結(jié)點,s為當前結(jié)點 struct stu *h,*p,*s。 h = (struct stu *)malloc(sizeof(struct stu))。 hnext = NULL。 p=h。 for(i=0。in。i++) { s = (struct stu *)malloc(sizeof(struct stu))。 pnext = s。 printf(Please input the information of the student: name sex no age \n)。 scanf(%s %c %d %d,sname,amp。ssex,amp。sno,amp。sage)。 snext = NULL。 p = s。 } printf(Create successful!)。 return(h)。}void deletelist(struct stu *s,int a){struct stu *p。while(sage!=a){ p = s。 s = snext。}if(s==NULL) printf(The record is not exist.)。else{ pnext = snext。 printf(Delete successful!)。}}void display(struct stu *s){s = snext。 while(s!=NULL) { printf(%s %c %d %d\n,sname,ssex,sno,sage)。 s = snext。 }}int main(){ struct stu *s。int n,age。printf(Please input the length of seqlist:\n)。scanf(%d,amp。n)。 s = creatlist(n)。 display(s)。printf(Please input the age:\n)。scanf(%d,amp。age)。deletelist(s,age)。display(s)。 return 0。}實現(xiàn)一個函數(shù),把一個字符串中的字符從小寫轉(zhuǎn)為大寫。 程序代碼#I nclude #I nclude void uppers(char *s,char *us){ for(。*s!=39。\039。s++,us++) { if(*s=39。a39。amp。amp。*s=39。z39。) *us = *s32。 else *us = *s。 } *us = 39。\039。}int main(){ char *s,*us。 char ss[20]。 printf(Please input a string:\n)。 scanf(%s,ss)。 s = ss。 uppers(s,us)。 printf(The result is:\n%s\n,us)。 getch()。}1.進程和線程的差別。 3.Heap與stack的差別。4.Windows下的內(nèi)存是如何管理的?5.。6. Service?7.C/C++編譯器中虛表是如何完成的?8.談?wù)凜OM的線程模型。然后討論進程內(nèi)/外組件的差別。9.談?wù)処A32下的分頁機制10.給兩個變量,如何找出一個帶環(huán)單鏈表中是什么地方出現(xiàn)環(huán)的?11.在IA32中一共有多少種辦法從用戶態(tài)跳到內(nèi)核態(tài)?12.如果只想讓程序有一個實例運行,不能運行兩個。像winamp一樣,只能開一個窗口,怎樣實現(xiàn)?13.如何截取鍵盤的響應(yīng),讓所有的‘a(chǎn)’變成‘b’?14.Apartment在COM中有什么用?為什么要引入?15.存儲過程是什么?有什么用?有什么優(yōu)點?16.Template有什么特點?什么時候用?17.談?wù)刉indows DNA結(jié)構(gòu)的特點和優(yōu)點。,使用多進程與多線程 ,請問有什么區(qū)別?