开发平台(Platform): (Ex: Win10, Linux, ...)
Win10
编译器(Ex: GCC, clang, VC++...)+目标环境(跟开发平台不同的话需列出)
Dev-C++
额外使用到的函数库(Library Used): (Ex: OpenGL, ...)
无
问题(Question):
最近在学习Linked List,想实作反转Linked List,debug许久找不出为何无法印出反转后的Linked List
喂入的资料(Input):
无
预期的正确结果(Expected Output):
21 -> 15 -> 7 -> 2 -> NULL
2 -> 7 -> 15 ->21-> NULL
错误结果(Wrong Output):
21 -> 15 -> 7 -> 2 -> NULL
2 -> NULL
程式码(Code):(请善用置底文网页, 记得排版,禁止使用图档)
https://ideone.com/eWq4t5
补充说明(Supplement):