class Program
    {
        
static void Main(string[] args)
        {
            String aa 
= "%.,46,2xb1bfs.,,";
            
int pos = isLetter(aa);
            aa 
= aa.Substring(pos, 1);
            Console.WriteLine(aa.ToUpper());
            Console.Read();
        }

        
public static int isLetter(string validString)
        {
            
byte[] tempbyte = System.Text.Encoding.Default.GetBytes(validString);
            
int pos = 0;
            
for (int i = 0; i < validString.Length; i++)
            {
                
byte by = tempbyte[i];
                
if ((by >= 65&& (by <= 90|| ((by >= 97&& (by <= 122)))
                {
                    
break;
                }
                pos
++;
            }
            
return pos;
        }
    }

相关文章:

  • 2021-11-04
  • 2022-12-23
  • 2021-12-24
  • 2022-12-23
  • 2022-12-23
  • 2022-01-30
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-08-21
  • 2022-12-23
  • 2022-02-10
  • 2022-12-23
  • 2022-12-23
  • 2021-09-05
  • 2022-12-23
相关资源
相似解决方案