亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

linux靜態鏈表問題,不知道哪里出錯了,

linux靜態鏈表問題,不知道哪里出錯了,

C++ C
湫來了 2019-11-24 18:22:24
#include <stdio.h>struct su{ int price; int atk; struct su *next;};int main(){ struct su a,b,c,*head; a.price=10; a.atk=10; b.price=20; b.atk=20; c.price=30; c.atk=30; head=&a; a.next=&b; b.next=&c; c.next=NULL; struct su *p; p=head; while(p != NULL) { printf("%d,%d\n",p->atk,p->price); p=p->next; } return 0;}
查看完整描述

目前暫無任何回答

  • 0 回答
  • 0 關注
  • 987 瀏覽

添加回答

舉報

0/150
提交
取消
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號