C#入门经典—第二章
来源:互联网 发布:淘宝企业店铺服务费 编辑:程序博客网 时间:2024/04/30 00:51
第二章 编写C#程序
本章内容:
- Visual Studio 2010和Visual C# 2010 Express Edition的基础知识
- 如何编写简单的控制台应用程序
- 如何编写Windows Form应用程序
2.1开发环境
2.1.1 Visual Studio 2010
2.2 控制台应用程序
using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace ConsoleApplication1{ class Program { static void Main(string[] args) { //Output text to the screem. Console.WriteLine("The first app in Beginning C# Programming!"); Console.ReadKey(); } }}
Console.ReadKey():
等待键盘输入,退出程序。使调试时能看到输出结果。如果没有此句,命令窗口会一闪而过。
新建项目:Ctrl+Shift+N
2.2.1 解决方案资源管理器(Solution Explorer)
2.2.2 属性(Properties)窗口
2.2.3 错误列表(Error List)窗口
2.3 Windows Forms应用程序
using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Windows.Forms;namespace WindowsFormsApplication1{ public partial class Form1 : Form { public Form1() { InitializeComponent(); } private void button1_Click(object sender, EventArgs e) { MessageBox.Show("The first Windows app in the book!"); } }}
- C#入门经典—第二章
- C#入门经典第二,三章
- 第二章经典入门
- 【算法入门经典】 第二章
- 《C#入门经典(第6版)》读书笔记2_第二章:编写C#程序
- C#学习第二天(整理自c#入门经典)
- C#入门经典—第三章
- C#入门经典—第四章
- C#入门经典—第五章
- C#入门经典—第六章
- C#入门经典—第七章
- C#入门经典—第八章
- 《算法竞赛入门经典》上机练习——第二章
- 算法竞赛入门经典 第二章
- 算法竞赛入门经典第二章练习
- 算法竞赛入门经典第二章笔记
- 算法竞赛入门经典-第二章源代码
- 算法竞赛入门经典第二章
- OpenTSDB简介
- 20130902C语言编程实践课
- 系统设置
- python语言的各种ORM实现
- 浏览器缓存机制
- C#入门经典—第二章
- 三星水波纹锁屏
- OpenStack Availability Zone和Aggregate Hosts理解
- spring 中事务的Readonly的解释
- 两段已序子数组 就地排序
- nginx 配置expires
- 对 HTTP 304 的理解
- 图模型简介(一)
- 从触宝号码助手遇到微信 看APP平台化是大势所趋还是随波逐流