date.cs
来自「微软(Microsoft)出版社C井练习文件及解答」· CS 代码 · 共 23 行
CS
23 行
using System;
namespace StructsAndEnums
{
struct Date
{
public Date(int ccyy, Month mm, int dd)
{
this.year = ccyy - 1900;
this.month = mm;
this.day = dd - 1;
}
public override string ToString()
{
return this.month + " " + (this.day + 1) + " " + (this.year + 1900);
}
private int year;
private Month month;
private int day;
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?