C#数据结构与算法武汉大学.rar

xsx44327 27 0 APPLICATION/X-RAR 2020-06-08 11:06:27

写出String2类中实现查找字符操作的方法:publicintIndexOf(charc); 解答: publicintIndexOf(charc){ inti=0; boolfound=false; StringNodeq=head.next; while(q!=null){ if(q.item==c){ found=true; break; } i++; q=q.next; } if(found) returni; else retur

用户评论
请输入评论内容
评分:
暂无评论