91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

  • 大小: 0.73KB
    文件類型: .c
    金幣: 1
    下載: 0 次
    發布日期: 2021-02-01
  • 標簽: 語言??c??C語言??

資源簡介

C語言鏈表創建與逆序輸出

資源截圖

代碼片段和文件信息

#include?
#include?
#define?N?sizeof(struct?x)
struct?x
{
int?num;
struct?x?*next;?
};?

struct?x?*creat(void)
{
struct?x?*p1*p2*head;
head=p2=(struct?x?*)malloc(N); //headp2指向頭結點
p1=(struct?x?*)malloc(N); //p1創建新結點?
scanf(“%d“&p1->num);?
while(p1->num!=-1)
{
p2->next=p1; //連接p2->p1兩個結點?
p2=p1; //p2向p1挪動?

評論

共有 條評論