C#?ж??????????email???
???????????? ???????[ 2016/7/22 10:50:28 ] ????????.NET ???????????
??????????
class Program
{
static void Main(string[] args)
{
Console.WriteLine("????????????????????? @sina.com ??β");
string us =Convert.ToString(Console.ReadLine());
string str1 = us.Replace("@"?? "");
int count = us.Length - str1.Length;
string str2 = us.Replace("."?? "");
int count2 = us.Length - str2.Length;
int count3 = us.Length - 1;
int xl=us.IndexOf(".")-us.IndexOf("@");
bool mw = (us.IndexOf("@sina.com") == (us.Length-9));
while (count == 1 && count2 == 1 && us.IndexOf("@") > 0 && us.IndexOf(".") > us.IndexOf("@")
&& us.IndexOf(".")<count3)
{
if (xl != 1 && us.Contains("@sina.com") && mw)
{
Console.WriteLine("???");
}
else {
Console.WriteLine("???????????????");
}
break;
}
Console.ReadLine();
}
}
??????
???·???
??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???·???????·
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11