第一个C#程序
终于,要开始学习C#编程了,而且还是用命令行编译,感觉不错。
请多多指教!工作需要,目前的学习路线是:c/c++ —> c# —> Java,主攻C/C++。
![](/images/cnblogs_com/mengshu-lbq/csharp.JPG)
请多多指教!工作需要,目前的学习路线是:c/c++ —> c# —> Java,主攻C/C++。
1
using System;
2![](/Images/OutliningIndicators/None.gif)
3
class Welcome
4
{
5
static void Main()
6
{
7
Console.WriteLine("Please enter your name:");
8
string message = "Welcome to you " + Console.ReadLine() + " !";
9
Console.WriteLine(message);
10
}
11
}
![](/Images/OutliningIndicators/None.gif)
2
![](/Images/OutliningIndicators/None.gif)
3
![](/Images/OutliningIndicators/None.gif)
4
![](/Images/OutliningIndicators/ExpandedBlockStart.gif)
5
![](/Images/OutliningIndicators/InBlock.gif)
6
![](/Images/OutliningIndicators/ExpandedSubBlockStart.gif)
7
![](/Images/OutliningIndicators/InBlock.gif)
8
![](/Images/OutliningIndicators/InBlock.gif)
9
![](/Images/OutliningIndicators/InBlock.gif)
10
![](/Images/OutliningIndicators/ExpandedSubBlockEnd.gif)
11
![](/Images/OutliningIndicators/ExpandedBlockEnd.gif)