其中
\u4個數字
這個功能還新鮮的
並不是ASCII碼
而是Unicode碼
這對我來說太太太實用啦
畢竟日文狂當然不能只輸出英文阿
只不過
誰知道Unicode碼的代碼啊囧
其他的就一點都不稀奇了
程式碼
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
{
string str1;
str1 = "Everyone say:\"Hello World\"";
Console.WriteLine("12345678901234567890123456789012345678901234567890");
Console.Write("\t" + str1);
Console.WriteLine("\t" + "Wonderful");
Console.Write("\nWelcome To VS 2008\n");
Console.WriteLine("c:\\cs\\hw1.cs");
Console.WriteLine(@"c:\cs\hw1.cs");
Console.WriteLine("\n\n" + "檔名:c:\\cs\\ex1.cs");
Console.WriteLine("\n" + @"檔名c:\cs\ex1.cs");
Console.WriteLine("C# 2008 is cool !");
Console.WriteLine("\"C# 2008 is cool !\"");
string str2 = "\u0041pple";
string str3 = "電腦";
str2 += str3;
Console.WriteLine(str2);
string str4 = "\\\u0061\n\n";
Console.Write(str4 + "Begin:");
Console.Read();
}
}
}
倒是可以搞一個無限迴圈 + \a 可以觸發一個系統警告聲
來整人
沒有留言:
張貼留言