日期:2014-05-18  浏览次数:20768 次

刚开始学习c#,第一个例子就遇到问题
看的书的是《c#入门经典》

C# code

#region Using directives

using System;
using System.Collections.Generic;
using System.Text;

#endregion

namespace ConsoleApplication1
{
   class Program
   {
      static void Main(string[] args)
      {
         // Output text to the screen
         Console.WriteLine("The first app in Beginning C# Programming!");
         Console.ReadKey();
      }
   }
}



执行的时候,提示console.Readkey() 有错误,VS2005的环境。
我都是按照书的提示做的,一开始设的是visual c#开发设置,
这是哪里的问题呢?一开始就一头雾水。

------解决方案--------------------
多多看书,少少看图,哈哈,现代人看书的特点。