1999/1/1 金 3086 1945/1/10 水 22800 1991/1/15 火 5994 |
前田稔(Maeda Minoru)の超初心者のプログラム入門
![]()
![]()
| ファイル名 | 説明 |
|---|---|
| Koyomi.zip | Koyomi.dll の圧縮ファイル |
| 名前 | 説明 |
|---|---|
| Koyomi | Koyomi.dll の namespace の名前 |
| KOYOMI | Object Class の名前 |
| bool GetDate() | 年月日をタイプ入力するメソッド(Enterキーのみ: false) |
| void Print() | 年月日の曜日と経過日数を印字するメソッド |
| int Count | 経過日数の get アクセッサ |
| int Week | 曜日(0~6)の get アクセッサ |
![]()
/**********************************************************/
/*★ 年月日を入力して、曜日と経過日数を表示 前田 稔 ★*/
/**********************************************************/
using System;
using Koyomi;
class console
{
public static int Main()
{
KOYOMI koyomi = new KOYOMI();
while(true)
{ if (koyomi.GetDate()==false) break;
koyomi.Print();
}
return 0;
}
}
|

![]()
using System;
using Koyomi;
class console
{
public static int Main()
{
KOYOMI koyomi = new KOYOMI();
koyomi.GetDate();
Console.WriteLine("Count={0} Week={1}", koyomi.Count,koyomi.Week);
Console.ReadLine();
return 0;
}
}
|
![]()