C#数据结构与算法武汉大学.rar
写出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
写出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