计算长度函数:
主函数:
头文件:
通过 gcc -c 生成三个 .o 文件
通过 gcc -o 生成 .exe 目标文件
运行结果:
输出链表的长度
原文:https://www.cnblogs.com/zijidefengge/p/13548206.html