[求助]找特定的字符串
class c_apostropheProcess {
string apostropheProcess ;
public c_apostropheProcess(string apostrophe)
{
apostropheProcess = apostrophe;
}
public bool apostrophe_Proces()//这提示错误“managementStudents.c_apostropheProcess.apostrophe_Proces()”: 并非所有的代码路径都返回值 managementStudents
{
int i;
for (i = 0; i < apostropheProcess.Length; i++)
{
if (apostropheProcess[i]=='a')
{
return true;
}
}
}