Data-Structres icon indicating copy to clipboard operation
Data-Structres copied to clipboard

您好,发现一个bug。

Open YSJ1996 opened this issue 6 years ago • 1 comments

上课Demo 2.数组存储的线性表.c中的ElementType FindKth(int K,List L)第三行return;应为return -1;

YSJ1996 avatar Sep 25 '19 11:09 YSJ1996

抱歉才看到 我是这样考虑的,其实这返回什么值都无所谓,因为前面已经提示过不存在元素了,如果后面再返回一个 -1,可能会产生困扰,所以我就没有返回 -1

callmePicacho avatar Oct 15 '19 03:10 callmePicacho