c#基础 第一讲
using System;
using System.Collections.Generic;
using System.Text;
namespace MYTest
{
class Program
{
static void Main(string[] args)
{
DateTime d;
d = DateTime.Now;
int a;
int b;
Console.Title = "第一堂课";
Console.WriteLine("请输入a的值,按回车");
Console.Write("a=");
a = Convert.ToInt32(Console.ReadLine());
Console.WriteLine("请输入b的值,按回车");
Console.Write("b=");
b = int.Parse(Console.ReadLine());
Console.WriteLine("a+b="+(a+b));
Console.WriteLine(d.ToString("yyyy-MM-dd hh:mm:ss:ms"));
Console.ReadKey();
}
}
}