高级程序设计
C#
实 验 报 告
实验题目: 实训1:熟悉C#开发环境
实验目的
- 掌握C#程序创建、编译和运行的基本步骤;
- 掌握控制台输入输出的基本方法;
- 初步熟悉Visual Studio 2010集成开发环境。
实验内容及步骤
题目1 如何运行和中断程序
源代码:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace SX1_1
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("Hellow,World!");
Console.Read();
}
}
}
运行结果:
题目2 模拟邮箱注册
源代码:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks