C#第一次作业(hallow world)

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

/*namespace hallowword
{
class Program
{
static void Main(string[] args)
{
// Use the system console object
System.Console.WriteLine("Hello World!");
}
}
}*/
class Hello
{
int someVariableName;
static void Main(string[] args)
{
// Use the system console object
Console.BackgroundColor = ConsoleColor.Red;
Console.ForegroundColor = ConsoleColor.Green;
Console.WriteLine("Hello World!");
}
}

稍微有点理解错误,导致中间做错了一次,不过严格意义上说也没做错,不过加入颜色时候问题不大。

posted @ 2015-03-16 22:03  月染苏拉格  阅读(287)  评论(1编辑  收藏  举报