namespace system
{
    class program
    {
        static void Main (string[] args)
        {
            //output text to the screen.
            Console.WriteLine("fdafdfdfefvewfdfdf!");
            Console.writeline();
        }
    }
}

解决方案 »

  1.   

    你如果要看结果,最好在末尾加上一句Console.ReadKey();
      

  2.   

    没错,
    加一句Console.ReadLine();就可以看到结果了。。
      

  3.   

    @lz:
    如果只是出于输出一些文本的话,使用的方法没有错误.
    最后一个WriteLine方法只是多输出了一个换行而已.但是如果非要找到一些错误的话,您可能需要引入一个.NET Framework命名空间.
    using System;
    这样的话,其他地方没有变化.祝您成功!
      

  4.   

     Console.WriteLine("fdafdfdfefvewfdfdf!");
     Console.writeline();//此据修改为Console.WriteLine();大小写有问题。
    另外控制台程序输出即可。我在VS2005.net上调试没有问题。
      

  5.   

    你的错是不是一点运行的时候直接跳出啊!
    要么把
     Console.writeline();
    改成
    Console.Readline();或者按Ctrl+F5
      

  6.   

    1、using System;
    2、Console.writeline();    改成  Console.Readline();
      

  7.   


     Console.Readline();csc test.cs
      

  8.   

    Console.WriteLine("fdafdfdfefvewfdfdf!");
     Console.writeline();//此据修改为Console.WriteLine();大小写有问题。
    另外控制台程序输出即可。我在VS2005.net上调试没有问题。
      

  9.   

    最后一句输出的Console.writeline(); 改成 Console.Readline();
      

  10.   

    楼主,你的代码逻辑上是没有错误的,因为你这段程序时控制台程序,所以运行时,会一闪而过!这不是错误,如果你想让界面不闪一下就消失,那么你可以在最后一句把Console.WriteLine();改写为Console.ReadLine();这样,运行时,界面就会停留在面前,不会一闪而过,而是等待你输入一行数据,敲回车键后才会消失。
      

  11.   

    namespace system
    {
      class program
      {
      static void Main (string[] args)
      {
      Console.WriteLine("fdafdfdfefvewfdfdf!");
      Console.ReadLine();
      }
      }
    }