菜鸟 才学c# 有问题求帮忙
class Program{
static void Main(string[] args)
{
string[] name = {" 蒙奇"," 卡卡"," 整啊大事"," 火影" };
string s;
for (int i = 0; i < name.Length; i++)
{
Console.Write(name[i]);
s=Fanhui(name.Length);
Console.WriteLine("s");
}
Console.ReadKey();
}
public static string Fanhui (int s)
{
int i = 1;
while(i<s)
//for (int i = 1; i < s; i++)
{
i++;
return "|";
}
}
}
总是提示错误: 并非所有的代码路径都返回值
求帮帮忙啊