我刚装了一个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#文件的步骤写出来,不胜感激!
class WelcomeCSS {
public static void Main() {
Console.WriteLine("Welcome to the C# Station Tutorial!");
}
}
请兄弟们,把在Visual Studio 2005上编写和调试C#文件的步骤写出来,不胜感激!
解决方案 »
- C# datagridview合并行后,怎么导出EXCEL
- 无法将类型为“DataGridViewTextBoxCell”的对象强制转换为类型“TreeGridCell“
- 求助!使用AseDataAdapter报错,不明白为什么
- 父窗体如何关闭子窗体
- 网路图片下载请教高手了。
- 将VB6程序转换到VB.NET后, Dim reg As Object : reg = CreateObject("Wscript.Shell"),然后在reg.后出现的提示框中并没有RegWrite
- VS 2005安装问题???
- 关于windows控件制作过程中的问题!!???
- 关于客户端打印web 水晶报表的问题?
- 安装有VS2008的Vista环境中,如何配置ASP.NET(C#)运行环境?
- 在c#类中如何引用窗体控件
- 如能提供思路解决问题,送高分!
那样写,调试麻烦阿。。请教下阿!
我建了个项目,然后在里面写了个类试了下,但结果没有显示在“输出窗口”,可能是步骤有错。
完了再打开Program.cs,看看里面的代码就明白你的代码应该在哪里写了
http://www.microsoft.com/china/msdn/events/webcasts/shared/webcast/downloadarchive.aspx
我是这样建的阿,但在"输出窗口"没有显示输出的结果....
再加一句:Console.ReadKey();应该就能看到控制台了
比如:
Console.WriteLine("Hello!");我想它在"输出窗口"显示出来"Hello"字样,是不是建立其它类型的项目?
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!"
---------------------------- ^^ ------