阅读背景:

如何将字符串strcpy成二维数组

来源:互联网 

I run the program in unix. It had segmentation faults. I found out it is from the for loop in read_names function. When I disabled the loop and set i = 0, it worked. However, when I set i = 1 or other number, it showed segmentation fault again. I think the way I store string might be wrong. Could anyone help me figure out this problem? I run the program in unix. It had segmentation




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: