struct Node{
...
}Node2;
此时Node2是Node的一个变量,相当于Node Node2;

typedf struct Node{
..
}Node2
此时相当于
typedef struct Node Node2,即
用Node2表示struct Node
typdef struct {
..
}Node
此时写Node变量应是Node n1,而不能写struct Node n1;
以前一直没有区分过,发现大学真的没有学好c语言

相关文章:

  • 2022-01-19
  • 2022-01-17
  • 2022-12-23
  • 2022-12-23
  • 2021-09-16
  • 2021-09-06
猜你喜欢
  • 2021-10-18
  • 2021-08-08
  • 2022-12-23
相关资源
相似解决方案