我刚装了一个Visual Studio 2005的环境,目的只要是用它来编写C#程序,因为是我第一次接触C#,所以我不知道用Visual Studio 2005在哪里开始编写我的第一个C#程序,比如下面的一个Hello world!例子:using System;
class WelcomeCSS {
public static void Main() {
Console.WriteLine("Welcome to the C# Station Tutorial!");
}
}
请兄弟们,把在Visual Studio 2005上编写和调试C#文件的步骤写出来,不胜感激!

解决方案 »

  1.   

    miyimei(阿拉丁) ( ) 信誉:100    Blog 
    那样写,调试麻烦阿。。请教下阿!
    我建了个项目,然后在里面写了个类试了下,但结果没有显示在“输出窗口”,可能是步骤有错。
      

  2.   

    现在问题是对Visual Studio 2005工具操作不懂,知道的说下步骤吧!谢谢了...
      

  3.   

    新家c#控制台工程,完成之后按f5看看
    完了再打开Program.cs,看看里面的代码就明白你的代码应该在哪里写了
      

  4.   

    搂主!你可以去微软的官网Webcast网络讲座下载视频教程!
    http://www.microsoft.com/china/msdn/events/webcasts/shared/webcast/downloadarchive.aspx
      

  5.   

    believefym(feng) ( ) 信誉:100    Blog 文件->项目->window->控制台应用程序
    我是这样建的阿,但在"输出窗口"没有显示输出的结果....
      

  6.   

    Console.WriteLine("Hello!");这句加在Program.cs文件的Main()方法里面,在"输出窗口"没显示出来...怎么回事?请 believefym(feng) ( ) 信誉:100    Blog 回答..
      

  7.   

    在你的main函数里加System.Diagnostics.Trace.WriteLine("Hello");就能在输出窗口
    再加一句:Console.ReadKey();应该就能看到控制台了
      

  8.   

    一闪而过是有的,那我怎么看得到显示出来的信息呢?
    比如:
    Console.WriteLine("Hello!");我想它在"输出窗口"显示出来"Hello"字样,是不是建立其它类型的项目?
      

  9.   

    using System;
    class WelcomeCSS {
    public static void Main() {
    Console.WriteLine("Welcome to the C# Station Tutorial!");
    }
    }save to c:/a.csand then 
    start->
    All program->
    Microsoft Visual studio 2005->
    visual studio tools->
    visual studio 2005 command prompt->go to c:/and then 
    >csc a.cs                     //compile the cs file to a.exeand then
    >a                            //run the a.exeyou will see what you want to see "Welcome to the C# Station Tutorial!"
     
    ---------------------------- ^^ ------