//以下程序执行只需 将 Test04;或Test03;放到main()方法中
static void Test04()
{string ret = string.Empty;
string arr = string.Empty;
for (int i = 0; i < 2; i++)
{
arr = "你是傻逼吗?**************";
for (int j = 6; j < 17; j++)
{
Thread.Sleep(1000);
Console.Clear();
ret= arr.Substring(0, j) + "运算中" + arr.Substring(j+3, arr.Length-j-3);
Console.WriteLine(ret+"{0}%",2*j+i*40);
}
}
Thread.SpinWait(500);
Console.Clear();
Console.WriteLine("经计算你的智商为:{0}",100);
Console.WriteLine("你不是傻逼");
}
static void Test03()
{
string str = string.Empty;
string str1 = string.Empty;
for (int i = 0; i <3; i++)
{
str = "xxxxxxxxxxxxxx";
for (int j = 0; j < 10; j++)
{
Thread.Sleep(500);
Console.Clear();
str1 = str.Substring(0, j) + "欢迎你" + str.Substring(j + 3, str.Length - j-3);
Console.WriteLine(str1 + " {0}%", (3*j)+i*30);
}
}
Thread.Sleep(500);
Console.Clear();
Console.WriteLine("登陆成功 {0}%",100);
}