自己写的好玩的。当然这个程序只能是自己玩玩。

using System;

using System.Collections.Generic;

using System.Linq;

using System.Text;

 

namespace EmailAddressCheck

{

    class Program

    {

        static void Main(string[] args)

        {

            Console.WriteLine("Please input your Email address");

            String emailToBeVerify=Console.ReadLine();

            char[] emailChar = emailToBeVerify.ToCharArray();          

            for (int i = 0;  i < emailChar.Length-1;i++)

            {               

                if (emailChar[i + 1].ToString().Equals("@"))

                {

                    Console.WriteLine("Valid email address");

                    break;

                }               

            }           

            Console.Read();

        }

    }

}

相关文章:

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