最近中文字幕高清中文字幕无,亚洲欧美高清一区二区三区,一本色道无码道dvd在线观看 ,一个人看的www免费高清中文字幕

為了賬號(hào)安全,請(qǐng)及時(shí)綁定郵箱和手機(jī)立即綁定

我寫的沒問題吧

#include?<stdio.h>

struct?weapon{
????int?price;
????int?atk;
????struct?weapon?*next;
};

void?print_link_table(struct?weapon?*w)
{
????printf("thie?gun's?attributes:\n");
????printf("????price=%d\n",w->price);
????printf("????atk=%d\n",w->atk);
????if((w->next)==NULL)
????????return;
????printf("print?next?gun'infomation:\n");
????print_link_table(w->next);
}

int?main()
{
????struct?weapon?a,b,c,*head;
????a.price=100;
????a.atk=100;
????b.price=200;
????b.atk=200;
????c.price=300;
????c.atk=300;
????head=&a;
????a.next=&b;
????b.next=&c;
????c.next=NULL;
????print_link_table(head);
????return?0;
}


正在回答

1 回答

看著應(yīng)該是對(duì)的

0 回復(fù) 有任何疑惑可以回復(fù)我~

舉報(bào)

0/150
提交
取消
Linux C語言結(jié)構(gòu)體
  • 參與學(xué)習(xí)       118526    人
  • 解答問題       166    個(gè)

C語言的深入,幫助小伙伴們進(jìn)一步的理解C語言,趕緊看過來

進(jìn)入課程

我寫的沒問題吧

我要回答 關(guān)注問題
微信客服

購(gòu)課補(bǔ)貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動(dòng)學(xué)習(xí)伙伴

公眾號(hào)

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號(hào)