第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號(hào)安全,請(qǐng)及時(shí)綁定郵箱和手機(jī)立即綁定
已解決430363個(gè)問題,去搜搜看,總會(huì)有你想問的

請(qǐng)問這個(gè)要怎么辦?

請(qǐng)問這個(gè)要怎么辦?

C
ZXJ03 2016-05-13 23:05:59
#include?<stdio.h> #include?<malloc.h> #define?OK?1 #define?ERROR?0 typedef?int?status; typedef??struct??Subject ?{?float?score; ???char??course; ??struct?Subject?*next; ?}Subject,*SList; status?create_S(SList?&L) ?{??SList?p;?int?i,n;?????????? ?????L=(Subject?*)malloc(sizeof(Subject)); ?L->next=NULL;?? ?printf("Input?the?element?number:"); ?scanf("%d",&n); ?????printf("Input?the?element?value?reversing:\n"); ?for?(i=n;i>0;--i)? ???????{??p=(Subject?*)malloc(sizeof(Subject)); ??????????scanf("%s,%f",&p->course,&p->score); ??????p->next=L->next; ??????????L->next=p;?}? ?printf("The?linklist?as?follow:\n"); ?????for?(i=0;i<n;++i) ?{?printf("%s,%f\n",&p->course,&p->score); ???p=p->next; ?} ?printf("\n"); ?return?OK; }? void?main(){ SList?head; create_S(head); }結(jié)果是這樣,請(qǐng)問哪里出錯(cuò)了?要怎么改?
查看完整描述

1 回答

  • 1 回答
  • 0 關(guān)注
  • 1216 瀏覽

添加回答

舉報(bào)

0/150
提交
取消
微信客服

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

幫助反饋 APP下載

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

公眾號(hào)

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