一个有关约瑟夫环的问题 求大神帮忙看看我的程序错在哪里 调试了N遍了.... 分不多 见谅了!

2025-05-24 05:32:15
推荐回答(1个)
回答1:

type struct Node定义中的Node *next前面需要加上struct。

typedef struct Node {
  int xuhao;
  int code;
  struct Node * next;
} Node, *Link;