meili 发表于 2022-10-27 15:51:05

【C#如何由一个字母获得26个字母中的另一个字母比如strings=quot;Bquot;需要计算出距离s中保存的quot;Bquot;的后面间隔2个位置的字母】

<p>问题:【C#如何由一个字母获得26个字母中的另一个字母比如strings=quot;Bquot;需要计算出距离s中保存的quot;Bquot;的后面间隔2个位置的字母】
<p>答案:↓↓↓<p class="nav-title mt10" style="border-top:1px solid #ccc;padding-top: 10px;">陈庭贵的回答:<div class="content-b">网友采纳  stringA="B";  Console.WriteLine(Convert.ToChar(Convert.ToInt16(A.ToCharArray())+2));
页: [1]
查看完整版本: 【C#如何由一个字母获得26个字母中的另一个字母比如strings=quot;Bquot;需要计算出距离s中保存的quot;Bquot;的后面间隔2个位置的字母】