using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace HelloWorld
{
class Program
{
static void Main(string[] args)
{
ConsoleTitle();
Greeting();
}
static void Greeting()
{
string strHello = "\u0048\u0065\u006C\u006C\u006f\n";
// Unicode of Hello
string strWorld = "\x77\x6F\x72\x6c\x64\x21\b";
// Hexidecimal of world
Console.Write("{0}", strHello);
Console.Write("{0}", strWorld);
Console.ReadLine();
}
static void ConsoleTitle()
{
string strTitle = "Hello(Unicode) World(Hexidecimal) v0.01";
Console.Title = strTitle;
}
}
}
Visual c# 2008 Hello (Unicode) World (Hexidecimal)...
Posted by
Samson J. Loo
Thursday, September 25, 2008
at
5:17 PM
Labels:
.NET,
.NET 2008,
c# 2008,
console application,
Hello World,
hexidecimal,
unicode,
visual c# 2008
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment