C#编程求助:编写一个应用程序对输入的字符串进行加密,对于字母字符串加密的额规则如下:
C#编程求助:编写一个应用程序对输入的字符串进行加密,对于字母字符串加密的额规则如下:
日期:2017-09-08 16:09:36 人气:3
// str 为 需要进行转换的字符串.
public static string ConvertCode(string str)
{
System.Text.StringBuilder strBuilder=new System.Text.StringBuilder();
foreach(char ch in str)
{
if((ch>=65 && ch=97 && ch<=122))