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

正文內(nèi)容

電子技術(shù)第十章結(jié)構(gòu)體與共用體-資料下載頁

2025-07-14 01:30本頁面
  

【正文】 ’y’。 } 。(1級(jí))main( ){ struct EXAMPLE { struct {int x。 int y。 }in int a。 int b。 }e。 =1。 =2。 = * 。 = + 。 printf(“%d,%d”, , )。 } 。(2級(jí))main( ){ static struct s1 {char c[4], *s。 }s1={“abc”,”def”}。static struct s2 {char *cp。 struct s1 ss1。 }s2={“ghi”, {“jkl”, “mno”}}。printf(“%c,%c\n”, [0], *)。 printf(“%s,%s\n”, , )。printf(“%s,%s\n”, , )。 printf(“%s,%s\n”, ++, ++)。} 。(1級(jí))struct s{ int a。 float b。 char *c。 }main( ){static struct s x={19,”zhang”}。 struct s *px=amp。x。 printf(“%d %.1f %s\n”, , ,)。 printf(“%d %.1f %s\n”, pxa, (*px).b,pxc)。 printf(“%c %s\n”, *pxc1, amp。pxc[1])。} 。(1級(jí))struct stru {int x。 char c。 }。main( ){ struct stru a={10, ’x’},*p=amp。a。 func (p)。 printf ( “%d,%c”, , )。 }func (struct stru *b){bx=20。 bc=’y’。 } 。(1級(jí)) include struct stu { int num。char name[10]。int age。}。void fun(struct stu *p){ printf(%s\n,(*p).name)。 }void main(void){ struct stu students[3]={ {9801,Zhang,20}, {9802,Wang,19}, {9803,Zhao,18} }。 fun(students+2)。}五、編程題,實(shí)現(xiàn)輸入一個(gè)學(xué)生的數(shù)學(xué)期中和期末成績(jī),然后計(jì)算并輸出其平均成績(jī)。(1級(jí)),實(shí)現(xiàn)輸入三個(gè)學(xué)生的學(xué)號(hào)、數(shù)學(xué)期中和期末成績(jī),然后計(jì)算其平均成績(jī)并輸出成績(jī)表。(1級(jí)),鏈表結(jié)點(diǎn)中的數(shù)據(jù)通過鍵盤輸入,當(dāng)輸入數(shù)據(jù)為1時(shí),表示輸入結(jié)束。(鏈表頭結(jié)點(diǎn)的data域不放數(shù)據(jù),表空的條件是 phnext = =NULL)。(2級(jí)),鏈表中每個(gè)結(jié)點(diǎn)包含字符型數(shù)據(jù)域(data)和指針域(next)。請(qǐng)編寫函數(shù)實(shí)現(xiàn)在值為a的結(jié)點(diǎn)前插入值為key的結(jié)點(diǎn),若沒有值為a的結(jié)點(diǎn),則插在鏈表最后。(2級(jí))7 / 7
點(diǎn)擊復(fù)制文檔內(nèi)容
研究報(bào)告相關(guān)推薦
文庫(kù)吧 www.dybbs8.com
備案圖鄂ICP備17016276號(hào)-1