有如下代码:
public string GetPYString(string str)
{
string tempstr="";
foreach(char c in str)
{
if((int)c>=33 && (int)c<=126)
{
tempstr+=c.ToString();
}
else
{
tempstr+=GetPYChar(c.ToString());
}
}
return tempstr;
}
提示如下错误:
Expected class, delegate, enum, interface, or struct
何解????????
public string GetPYString(string str)
{
string tempstr="";
foreach(char c in str)
{
if((int)c>=33 && (int)c<=126)
{
tempstr+=c.ToString();
}
else
{
tempstr+=GetPYChar(c.ToString());
}
}
return tempstr;
}
提示如下错误:
Expected class, delegate, enum, interface, or struct
何解????????
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货