送分题?怎么把abcdef一个一个的输出?
stirng s= "abcd "
变成a
b
c
d
------解决方案--------------------------------------------------------
string s = "abcd ";
foreach (char c in s)
{
Console.WriteLine(c);
}
Console.ReadLine();
------解决方案--------------------------------------------------------
spit
------解决方案--------------------------------------------------------
string s = "abcd ";
for(int i=0;i <s.Length;i++)
{
console.WriteLine(s[i]);
}