¥Ï¥ëhal
¥Ç¥¸¥¿ŽÙ ¥³¥ó¥Æ¥ó¥Ä

pc2

ºî¤Ã¤Æ³Ø¤Ö
¥Ï¡¼¥É¤È¥½¥Õ¥È

¥¢¥ë¥´¥ê¥º¥à
ÅŻҲóÏ©

 






¤³¤Î¥µ¥¤¥È¤ÏHP¤Ç¤¹
¥Ö¥í¥°¤Ç¤Ï¤¢¤ê¤Þ¤»¤ó
Í×˾¡¦°Õ¸«¤Ï
²¼µ­¤Î·Ç¼¨¾ì¤òÍøÍѤ·¤Æ
²¼¤µ¤¤¤Þ¤¿¥Ö¥í¥°¤â¸«¤Æ²¼¤µ¤¤

 

¥í¥Ü¥Ã¥È¡¦DOSV·Ç¼¨ÈÄ·ó£Â£ì£ï£ç

²û¤«¤·¤Î¥³¥ó¥Ô¥å¡¼¥¿
Apple II Apple2
PC9801 PC9821

£ò£ï£â£ï£ô£ï

Top¤ËÌá¤ë

¥é¥é Lara
¥¢¥Ê¥í¥° ¥³¥ó¥Æ¥ó¥Ä

LaraºÂ¤ì
Æ°²è¤Ç³Ø¤Ö
í¿¤È·±Îý
Æ°²è¥á¥Ë¥å¡¼


¹©ºî


½¸ÃÄÎý½¬¥á¥Ë¥å¡¼


¤·¤Ä¤±¡¡·±Îý¥³¥é¥à




ºÇ¸å¤Ë¥é¥é¤Ë¤Ä¤¤¤Æ

¤³¤Î¥µ¥¤¥È¤ÏHP¤Ç¤¹
¥Ö¥í¥°¤Ç¤Ï¤¢¤ê¤Þ¤»¤ó
Í×˾¡¦°Õ¸«¤Ï
²¼µ­¤Î·Ç¼¨¾ì¤òÍøÍѤ·¤Æ
²¼¤µ¤¤¤Þ¤¿¥Ö¥í¥°¤â¸«¤Æ²¼¤µ¤¤

Lara¥é¥é¤Î
¥Ö¥í¥°

¸¤¤Î¤·¤Ä¤±¤È·±Îý
·Ç¼¨ÈÄ


·Ç¼¨ÈĤÎÍøÍѵ¬Â§

 

 

 

 

£Ì£á£ò£áÉú¤»
Top¤ËÌá¤ë
¾¾ËÜ¡¡¥ï¥ó¥ï¥ó¥¯¥é¥Ö
¤ï¤ó¤ï¤ó¥¯¥é¥Ö

 

Visual Studio 2008 Express Edition ¤Ç¥Ð¥¤¥ª¥ê¥º¥à¡Êbiorhythm¡Ë¤òºî¤í¤¦
¡¡

¥Ð¥¤¥ª¥ê¥º¥à¤òÃÏÆ»¤Ë»»½Ñ·×»»¤Çµá¤á¤Æ¤ß¤ë

­¡Visual Studio 2008 Express Editio¤òµ¯Æ°¤·¤Þ¤¹

­¢Windows¥Õ¥©¡¼¥à¥¢¥×¥ê¥±¡¼¥·¥ç¥ó¤òÁªÂò¤·¤Þ¤¹¡£
ŬÅö¤Ê̾Á°¤ò¤Ä¤±¤Þ¤¹¡£¤³¤³¤Ç¤Ïbior¤È¤·¤Þ¤·¤¿¡£

­£Àþ²è¤Î½àÈ÷¤Î¤¿¤á¥Ú¥¤¥ó¥È¤ò¥»¥Ã¥È¤·¤Þ¤¹¡£
¿·¤·¤¯¤Ç¤­¤¿¥Û¡¼¥à¤Î±¦¥¯¥ê¥Ã¥¯¤ò¤·¤Þ¤¹¡£¥×¥í¥Ñ¥Æ¥£¤òÁªÂò¤·¤ÆÍë¥Þ¡¼¥¯¤ò¥¯¥ê¥Ã¥¯¤·¡Ö¥×¥í¥Ñ¥Æ¥£¡×¡Öɽ¼¨¡×¡Ö¥Ú¥¤¥ó¥È¡×¤È¤¹¤¹¤á¤Þ¤¹¡£
private: System::Void button1_Click(System::Object^ sender, System::EventArgs^ e) {}
¤¬¼«Æ°ºîÀ®¤µ¤ì¤Þ¤¹¡£¤³¤³¤Ë¥Ð¥¤¥ª¥ê¥º¥à¤Î¥°¥é¥Õ¤ò½ñ¤­¤Þ¤¹¡£

­¤Form¤Ë¥³¥ó¥È¥í¡¼¥ë¤òÇÛÃÖ¤·¤Þ¤¹¡£
¤³¤³¤Ç¤Ï¥³¥Þ¥ó¥É¥Ü¥¿¥ó£±¤È¥Æ¥­¥¹¥È¥Ü¥Ã¥¯¥¹£±¡Ý£¶¤ò»ÈÍѤ·¤Þ¤¹¡£

­¥¥Õ¥©¡¼¥à¤ò¥¯¥ê¥Ã¥¯¤·¤Æ
private: System::Void Form1_Load(System::Object^ sender, System::EventArgs^ e) {}¤òºîÀ®¤·¤Æ¤ª¤­¤Þ¤¹¡£

¥Ñ¥Ö¥ê¥Ã¥¯¤ËÀÅŪÊÑ¿ô¤òÀßÄê
³Êº¹ÉØ¥×¥í¥°¥é¥à¤«¤é¤³¤ÎÊÑ¿ô¤¬¥¢¥¯¥»¥¹²Äǽ¤Ë¤Ê¤ê¤Þ¤¹¡£

static int fYear,fMonth,fDay,eYear,eMonth,eDay;
¡¡¡¡¡¡¡¡ static int¡¡day,day1,day2,day3;

¤½¤Î¾¡¡½ÅÍ×»ö¹à

1)¥°¥é¥Õ¥£¥Ã¥¯¤ÎÀßÄê
Graphics^ ÊÑ¿ô̾=e->Graphics;
Îã¡¡Graphics^ gr=e->Graphics;

gr->FillRectangle(Brushes::Red,x1+xx,yy-y1,1,1);

2)Invalidate(); //ºÆÀþ²è¤µ¤ì¤Þ¤¹

­¦stdfax.h¤ËsinÅù¤ò»ÈÍѤ¹¤ë¤¿¤á¿ô³ØŪ´Ø¿ô¤ò¥»¥Ã¥È¤·¤Þ¤¹¡£

#include <math.h>
#include <time.h>

­§¤³¤³¤Ç»ÈÍѤ·¤¿½ÅÍפʴؿô

1)ÅÀ¤òÂǤÄ(ËÜÍè¤Ï»Í³Ñ¤ò½ñ¤¯)
gr->FillRectangle(Brushes::¿§,x¼´,y¼´,Éý,¹â);
Îã¡¡gr->FillRectangle(Brushes::Red,x1+xx,yy-y1,1,1);¡¡..1,1¤¬ÅÀ¤Ë¤Ê¤ë

2)Àþ¤ò°ú¤¯
gr->DrawLine(Pens::¿§, x»ÏÅÀ,y»ÏÅÀ,x½ªÅÀ,y½ªÅÀ);

Îã¡¡gr->DrawLine(Pens::Black, xx,yy-100,xx,yy+100);

3)¥Õ¥©¥ó¥È¤ÎÀßÄê
System::Drawing::Font^ font1=gcnew System::Drawing::Font("£Í£Ó ¥´¥·¥Ã¥¯",¥µ¥¤¥º);
Îã¡¡System::Drawing::Font^ font1=gcnew System::Drawing::Font("£Í£Ó ¥´¥·¥Ã¥¯",11);

4)¥°¥é¥Õ¥£¥Ã¥¯¤È¤·¤Æʸ»ú¤ò½ñ¤¯
gr->DrawString("ʸ»úÎó",font1,Brushes::¿§,x°ÌÃÖ,y°ÌÃÖ);
Îã¡¡gr->DrawString("¬Äêǯ¤Î Æü¿ô¡á",font1,Brushes::Black,10,360);

­¨¥Ð¥¤¥ª¥ê¥º¥à
³Æ¥ê¥º¥à¤ÏÃÂÀ¸Æü¤ò´ð½à¤È¤¹¤ëƱ¤¸¿¶Éý¤ÎÀµ¸¹ÇÈSIN¤È¤·¤Æɽ¤µ¤ì¡¢¿ÈÂΥꥺ¥à¤Ï23Æü¡¢´¶¾ð¥ê¥º¥à¤Ï28Æü¡¢ÃÎÀ­¥ê¥º¥à¤Ï33Æü¤Î¼þ´ü¤ÇÊѲ½¤¹¤ë¡£
¤Þ¤º¡¢À¸¤Þ¤ì¤Æ¤«¤éËÜÆü(¬ÄêÆü)¤Þ¤Ç¤ÎÆü¿ô¤ò½Ð¤¹¡£¤½¤ÎÆü¿ô¤«¤é³ÑÅÙ¤òµá¤á¤ë¡£1¼þ´ü¤Ï360¡ë¤Ê¤Î¤Ç360¤ò23¤Ê¤É¤Ç³ä¤ê¡¢Æü¿ô³Ý¤±¤ë¤È¬ÄêÆü¤Þ¤Ç¤Î³ÑÅÙ¤¬µá¤Þ¤ë¡£¤³¤Î³ÑÅÙ¤ò¥é¥¸¥¢¥ó¤Ë¤¹¤ë¡£
¼°¡¡360¡à23¡ßÀ¸¤­¤Æ¤¤¤ëÆü¿ô¡ß±ß¼þΨ/180

¥¨¥¯¥»¥ëÀâÌÀ¥·¡¼¥È»²¾È
±¼Ç¯¤ò¹Íθ¤·À¸¤­¤Æ¤¤¤ëÆü¿ô¤òµá¤á¤ë¡¡
¥·¡¼¥È1¡¡sum¡¡if¡¡int¡¡¤Î¤ß¤Îñ½ã¤Ê·×»»¤Çµá¤á¤Æ¤¤¤ë
¥·¡¼¥È2¡¡¤³¤ì¤òËüǽ¤Ë¤·¤Æ¤¤¤ë
¥·¡¼¥È3¡¡date´Ø¿ô¤òÍѤ¤¤Æ¥°¥é¥Õ²½¤·¤Æ¤¤¤ë

¥Ð¥¤¥ª´°À®.xls¡¡¢«¥À¥¦¥ó¥í¡¼¥É

vba¤Ë¤è¤ë¥Ð¥¤¥ª¥ê¥º¥à←¥À¥¦¥ó¥í¡¼¥É

­©¡¡¼¡¤¬ÆþÎϤ·¤¿Á´ÂÎ¤Î¥×¥í¥°¥é¥à

ÀÖ»ú¤¬µ­Æþ¤·¤¿¤â¤Î
Ã㿧¤Ï¼«Æ°ºîÀ®¤µ¤ì¤¿¤â¤Î


#pragma once



namespace bior {

using namespace System;
using namespace System::ComponentModel;
using namespace System::Collections;
using namespace System::Windows::Forms;
using namespace System::Data;
using namespace System::Drawing;

/// <summary>
/// Form1 ¤Î³µÍ×
///
/// ·Ù¹ð: ¤³¤Î¥¯¥é¥¹¤Î̾Á°¤òÊѹ¹¤¹¤ë¾ì¹ç¡¢¤³¤Î¥¯¥é¥¹¤¬°Í¸¤¹¤ë¤¹¤Ù¤Æ¤Î .resx ¥Õ¥¡¥¤¥ë¤Ë´ØÏ¢ÉÕ¤±¤é¤ì¤¿
/// ¥Þ¥Í¡¼¥¸ ¥ê¥½¡¼¥¹ ¥³¥ó¥Ñ¥¤¥é ¥Ä¡¼¥ë¤ËÂФ·¤Æ 'Resource File Name' ¥×¥í¥Ñ¥Æ¥£¤ò
/// Êѹ¹¤¹¤ëɬÍפ¬¤¢¤ê¤Þ¤¹¡£¤³¤ÎÊѹ¹¤ò¹Ô¤ï¤Ê¤¤¤È¡¢
/// ¥Ç¥¶¥¤¥Ê¤È¡¢¤³¤Î¥Õ¥©¡¼¥à¤Ë´ØÏ¢ÉÕ¤±¤é¤ì¤¿¥í¡¼¥«¥é¥¤¥ººÑ¤ß¥ê¥½¡¼¥¹¤È¤¬¡¢
/// Àµ¤·¤¯Áê¸ß¤ËÍøÍѤǤ­¤Ê¤¯¤Ê¤ê¤Þ¤¹¡£
/// </summary>
public ref class Form1 : public System::Windows::Forms::Form
{
public:

Form1(void)
{
InitializeComponent();
//
//TODO: ¤³¤³¤Ë¥³¥ó¥¹¥È¥é¥¯¥¿ ¥³¡¼¥É¤òÄɲä·¤Þ¤¹
//
}

private: System::Windows::Forms::TextBox^ textBox7;
public:

static int fYear=1945; //¸¶ÇúÅê²¼Æü
static int fMonth=8;
static int fDay=6;
static int eYear=2009; //¥×¥í¥°¥é¥àºîÀ®Æü 23511
static int eMonth=12;
static int eDay=19;

static int gMonth=31;

static int day,day1,day2,day3;

protected:
/// <summary>
/// »ÈÍÑÃæ¤Î¥ê¥½¡¼¥¹¤ò¤¹¤Ù¤Æ¥¯¥ê¡¼¥ó¥¢¥Ã¥×¤·¤Þ¤¹¡£
/// </summary>
~Form1()
{
if (components)
{
delete components;
}
}
private: System::Windows::Forms::Button^ button1;
protected:
private: System::Windows::Forms::TextBox^ textBox1;
private: System::Windows::Forms::TextBox^ textBox2;
private: System::Windows::Forms::TextBox^ textBox3;
private: System::Windows::Forms::TextBox^ textBox4;
private: System::Windows::Forms::TextBox^ textBox5;
private: System::Windows::Forms::TextBox^ textBox6;

private:
/// <summary>
/// ɬÍפʥǥ¶¥¤¥ÊÊÑ¿ô¤Ç¤¹¡£
/// </summary>
System::ComponentModel::Container ^components;

#pragma region Windows Form Designer generated code
/// <summary>
/// ¥Ç¥¶¥¤¥Ê ¥µ¥Ý¡¼¥È¤ËɬÍפʥ᥽¥Ã¥É¤Ç¤¹¡£¤³¤Î¥á¥½¥Ã¥É¤ÎÆâÍƤò
/// ¥³¡¼¥É ¥¨¥Ç¥£¥¿¤ÇÊѹ¹¤·¤Ê¤¤¤Ç¤¯¤À¤µ¤¤¡£
/// </summary>
void InitializeComponent(void)
{
this->button1 = (gcnew System::Windows::Forms::Button());
this->textBox1 = (gcnew System::Windows::Forms::TextBox());
this->textBox2 = (gcnew System::Windows::Forms::TextBox());
this->textBox3 = (gcnew System::Windows::Forms::TextBox());
this->textBox4 = (gcnew System::Windows::Forms::TextBox());
this->textBox5 = (gcnew System::Windows::Forms::TextBox());
this->textBox6 = (gcnew System::Windows::Forms::TextBox());
this->textBox7 = (gcnew System::Windows::Forms::TextBox());
this->SuspendLayout();
//
// button1
//
this->button1->Location = System::Drawing::Point(960, 146);
this->button1->Name = L"button1";
this->button1->Size = System::Drawing::Size(75, 23);
this->button1->TabIndex = 0;
this->button1->Text = L"button1";
this->button1->UseVisualStyleBackColor = true;
this->button1->Click += gcnew System::EventHandler(this, &Form1::button1_Click);
//
// textBox1
//
this->textBox1->Location = System::Drawing::Point(959, 42);
this->textBox1->Name = L"textBox1";
this->textBox1->Size = System::Drawing::Size(72, 22);
this->textBox1->TabIndex = 1;
//
// textBox2
//
this->textBox2->Location = System::Drawing::Point(1045, 43);
this->textBox2->Name = L"textBox2";
this->textBox2->Size = System::Drawing::Size(38, 22);
this->textBox2->TabIndex = 2;
//
// textBox3
//
this->textBox3->Location = System::Drawing::Point(1114, 44);
this->textBox3->Name = L"textBox3";
this->textBox3->Size = System::Drawing::Size(28, 22);
this->textBox3->TabIndex = 3;
//
// textBox4
//
this->textBox4->Location = System::Drawing::Point(960, 94);
this->textBox4->Name = L"textBox4";
this->textBox4->Size = System::Drawing::Size(70, 22);
this->textBox4->TabIndex = 4;
//
// textBox5
//
this->textBox5->Location = System::Drawing::Point(1047, 93);
this->textBox5->Name = L"textBox5";
this->textBox5->Size = System::Drawing::Size(35, 22);
this->textBox5->TabIndex = 5;
//
// textBox6
//
this->textBox6->Location = System::Drawing::Point(1117, 91);
this->textBox6->Name = L"textBox6";
this->textBox6->Size = System::Drawing::Size(24, 22);
this->textBox6->TabIndex = 6;
//
// textBox7
//
this->textBox7->Location = System::Drawing::Point(985, 204);
this->textBox7->Name = L"textBox7";
this->textBox7->Size = System::Drawing::Size(143, 22);
this->textBox7->TabIndex = 7;
//
// Form1
//
this->AutoScaleDimensions = System::Drawing::SizeF(8, 15);
this->AutoScaleMode = System::Windows::Forms::AutoScaleMode::Font;
this->ClientSize = System::Drawing::Size(1229, 600);
this->Controls->Add(this->textBox7);
this->Controls->Add(this->textBox6);
this->Controls->Add(this->textBox5);
this->Controls->Add(this->textBox4);
this->Controls->Add(this->textBox3);
this->Controls->Add(this->textBox2);
this->Controls->Add(this->textBox1);
this->Controls->Add(this->button1);
this->Name = L"Form1";
this->Text = L"Form1";
this->Load += gcnew System::EventHandler(this, &Form1::Form1_Load);
this->Paint += gcnew System::Windows::Forms::PaintEventHandler(this, &Form1::Form1_Paint);
this->ResumeLayout(false);
this->PerformLayout();

}
#pragma endregion
private: System::Void Form1_Paint(System::Object^ sender, System::Windows::Forms::PaintEventArgs^ e) {
Graphics^ gr=e->Graphics;
System::Drawing::Font^ font1=gcnew System::Drawing::Font("£Í£Ó ¥´¥·¥Ã¥¯",11);
System::Drawing::Font^ font2=gcnew System::Drawing::Font("£Í£Ó ¥´¥·¥Ã¥¯",10);

gr->DrawString("ÀÖ-¿ÈÂÎ",font1,Brushes::Red,10,1);
gr->DrawString("ÎÐ-´¶¾ð",font1,Brushes::Green,110,1);
gr->DrawString("ÀÄ-ÃÎÀ­",font1,Brushes::Blue,210,1);

gr->DrawString("À¸¤Þ¤ì¤¿Ç¯¤Î¡¡¡¡¡¡Æü¿ô¡á",font1,Brushes::Black,10,320);
gr->DrawString(day1.ToString(),font1,Brushes::Black,320,320);

gr->DrawString("À¸Íâǯ¤«¤éÁ°Ç¯¤ÎÆü¿ô¡á",font1,Brushes::Black,10,340);
gr->DrawString(day2.ToString(),font1,Brushes::Black,320,340);

gr->DrawString("¬Äêǯ¤Î Æü¿ô¡á",font1,Brushes::Black,10,360);
gr->DrawString(day3.ToString(),font1,Brushes::Black,320,360);

gr->DrawString("À¸¤­¤Æ¤¤¤ë Æü¿ô¡á",font1,Brushes::Black,10,380);
gr->DrawString(day.ToString(),font1,Brushes::Black,320,380);
double t;
int x1,tt=1,td;
int xx=15,yy=200;
int y1,y2,y3;
td=eDay;
for(t=1;t<=31;t=t+0.05){
x1=(t-1)*20;
y1=sin(3.141592654*((day + t-1)/23)*360/180)*100;
gr->FillRectangle(Brushes::Red,x1+xx,yy-y1,1,1);

y2=sin(3.141592654*((day + t-1)/28)*360/180)*100;
gr->FillRectangle(Brushes::Green,x1+xx,yy-y2,1,1);

y3=sin(3.141592654*((day + t-1)/33)*360/180)*100;
gr->FillRectangle(Brushes::Blue,x1+xx,yy-y3,1,1);
td=(x1/20)+eDay;
if (td>=gMonth) td=td-gMonth;
tt++;
if(tt==100|| t==1){
gr->DrawString(td.ToString(),font2,Brushes::Black,x1+xx,yy+10);
tt=0;
}
}
gr->DrawLine(Pens::Black, xx,yy,xx+31*20,yy);
gr->DrawLine(Pens::Black, xx,yy-100,xx,yy+100);

}
private: System::Void button1_Click(System::Object^ sender, System::EventArgs^ e) {
int month_data[13] = {0,31,0,31,30,31,30,31,31,30,31,30,31};
int leap;
int t;

fYear=int::Parse(textBox1->Text);
fMonth=int::Parse(textBox2->Text);
fDay=int::Parse(textBox3->Text);
eYear=int::Parse(textBox4->Text);
eMonth=int::Parse(textBox5->Text);
eDay=int::Parse(textBox6->Text);
// step 1 À¸¤Þ¤ì¤¿Ç¯¤ÎÆü¿ô¤ò½Ð¤¹
day1 = 0;
if ((0 == (fYear % 400)) || (0 != (fYear % 100)) && (0 == (fYear % 4)))
month_data[2]=29; //±¼Ç¯¤À¤«¤é¡¡£²·î¤¬£²£¹Æü
else
month_data[2]=28;
for(t=fMonth;t<=12;t++){
day1 =day1+month_data[t];
}
day1 = day1+1-fDay;

// step £² À¸¤Þ¤ì¤¿Íâǯ¤«¤é¬ÄêǯÁ°¤ÎÆü¿ô¤ÎÁí¿ô¤ò½Ð¤¹
day2 = 0;
for(t=fYear+1;t<=eYear-1;t++){
if ((0 == (t % 400)) || (0 != (t % 100)) && (0 == (t % 4)))
leap=366;
else
leap=365;

day2 =day2 + leap;
}

// step £³ ¬ÄêÆü¤ÎÆü¿ô¤ÎÁí¿ô¤ò½Ð¤¹
day3 = 0;
if ((0 == (eYear % 400)) || (0 != (eYear % 100)) && (0 == (eYear % 4)))
month_data[2]=29;
else
month_data[2]=28;
for(t=1;t<=eMonth-1;t++){
day3 = day3+ month_data[t];
}
day3 = day3 + eDay;

gMonth=month_data[eMonth];

//À¸¤Þ¤ì¤Æ¤«¤é¤ÎÆü¿ô */
day = day1 + day2 + day3;
textBox7->Text=day.ToString();
//ºÆÀþ²è
Invalidate();

}

private: System::Void Form1_Load(System::Object^ sender, System::EventArgs^ e) {
textBox1->Text="1945";
textBox2->Text="8";
textBox3->Text="6";
time_t current;
struct tm *local;
time(&current); /* ¸½ºß¤Î»þ¹ï¤ò¼èÆÀ */
local = localtime(&current); /* ÃÏÊý»þ¤Î¹½Â¤ÂΤËÊÑ´¹ */
textBox4->Text=(local->tm_year + 1900).ToString();
textBox5->Text=(local->tm_mon + 1).ToString() ;
textBox6->Text=(local->tm_mday).ToString() ;

day=0;

}

};
}


¼Â¹Ô¡¡¥×¥í¥°¥é¥à¥À¥¦¥ó¥í¡¼¥É

bior.exe

bior.zip

¥×¥í¥¸¥§¥¯¥È¡¡¥½¡¼¥¹¡¡bior-s.zip


³ÈÄ¥ÈÇ


private: System::Void Form1_Paint(System::Object^ sender, System::Windows::Forms::PaintEventArgs^ e) {
Graphics^ gr=e->Graphics;
System::Drawing::Font^ font1=gcnew System::Drawing::Font("£Í£Ó ¥´¥·¥Ã¥¯",11);
System::Drawing::Font^ font2=gcnew System::Drawing::Font("£Í£Ó ¥´¥·¥Ã¥¯",10);

gr->DrawString("ÀÖ-¿ÈÂÎ",font1,Brushes::Red,10,1);
gr->DrawString("ÎÐ-´¶¾ð",font1,Brushes::Green,110,1);
gr->DrawString("ÀÄ-ÃÎÀ­",font1,Brushes::Blue,210,1);

gr->DrawString("À¸¤Þ¤ì¤¿Ç¯¤Î¡¡¡¡Æü¿ô¡á",font1,Brushes::Black,10,320);
gr->DrawString(day1.ToString(),font1,Brushes::Black,320,320);

gr->DrawString("À¸Íâǯ¤«¤éÁ°Ç¯¤ÎÆü¿ô¡á",font1,Brushes::Black,10,340);
gr->DrawString(day2.ToString(),font1,Brushes::Black,320,340);

gr->DrawString("¬Äêǯ¤Î Æü¿ô¡á",font1,Brushes::Black,10,360);
gr->DrawString(day3.ToString(),font1,Brushes::Black,320,360);

gr->DrawString("À¸¤­¤Æ¤¤¤ë Æü¿ô¡á",font1,Brushes::Black,10,380);
gr->DrawString(day.ToString(),font1,Brushes::Black,320,380);
double t,x1,y1,y2,y3;;
int tt=1,td;
int xx=15,yy=200;
td=eDay;
for(t=1;t<=31;t=t+0.05){
x1=(t-1)*20;
y1=sin(3.141592654*((day + t-1)/23)*360/180)*100;
gr->FillRectangle(Brushes::Red,x1+xx,yy-y1,1,1);

y2=sin(3.141592654*((day + t-1)/28)*360/180)*100;
gr->FillRectangle(Brushes::Green,x1+xx,yy-y2,1,1);

y3=sin(3.141592654*((day + t-1)/33)*360/180)*100;
gr->FillRectangle(Brushes::Blue,x1+xx,yy-y3,1,1);
td=(x1/20)+eDay;
if (td>=gMonth) td=td-gMonth;
tt++;
if(tt==100|| t==1){
gr->DrawString(td.ToString(),font2,Brushes::Black,x1+xx,yy+10);
tt=0;
}
}
gr->DrawLine(Pens::Black, xx,yy,xx+31*20,yy);
gr->DrawLine(Pens::Black, xx,yy-100,xx,yy+100);

}
private: System::Void button1_Click(System::Object^ sender, System::EventArgs^ e) {
int month_data[13] = {0,31,0,31,30,31,30,31,31,30,31,30,31};
int leap;
int t;
int youbi1,youbi2;
fYear=int::Parse(textBox1->Text);
fMonth=int::Parse(textBox2->Text);
fDay=int::Parse(textBox3->Text);
eYear=int::Parse(textBox4->Text);
eMonth=int::Parse(textBox5->Text);
eDay=int::Parse(textBox6->Text);
// step 1 À¸¤Þ¤ì¤¿Ç¯¤ÎÆü¿ô¤ò½Ð¤¹
day1 = 0;
if ((0 == (fYear % 400)) || (0 != (fYear % 100)) && (0 == (fYear % 4)))
month_data[2]=29; //±¼Ç¯¤À¤«¤é¡¡£²·î¤¬£²£¹Æü
else
month_data[2]=28;
for(t=fMonth;t<=12;t++){
day1 =day1+month_data[t];
}
day1 = day1+1-fDay;

// step £² À¸¤Þ¤ì¤¿Íâǯ¤«¤é¬ÄêǯÁ°¤ÎÆü¿ô¤ÎÁí¿ô¤ò½Ð¤¹
day2 = 0;
for(t=fYear+1;t<=eYear-1;t++){
if ((0 == (t % 400)) || (0 != (t % 100)) && (0 == (t % 4)))
leap=366;
else
leap=365;

day2 =day2 + leap;
}

// step £³ ¬ÄêÆü¤ÎÆü¿ô¤ÎÁí¿ô¤ò½Ð¤¹
day3 = 0;
if ((0 == (eYear % 400)) || (0 != (eYear % 100)) && (0 == (eYear % 4)))
month_data[2]=29;
else
month_data[2]=28;
for(t=1;t<=eMonth-1;t++){
day3 = day3+ month_data[t];
}
day3 = day3 + eDay;

gMonth=month_data[eMonth];

//À¸¤Þ¤ì¤Æ¤«¤é¤ÎÆü¿ô */
if ( fYear<eYear){ day = day1 + day2 + day3;}
else
{ textBox11->Text="¬Äê¤Ç¤­¤Þ¤»¤ó";
day=0;
}

if(day>0) textBox11->Text=day.ToString();
//ºÆÀþ²è
Invalidate();
//=====¤ª¤Þ¤±=====================================
//ÍËÆü¤Îɽ¼¨
//textBox6->Text=cyoubi1[local->tm_wday];
array<String^ >^ wday = gcnew array<String^> {"Æü", "·î", "²Ð", "¿å", "ÌÚ", "¶â", "ÅÚ"};
textBox10->Text=wday[youbi]; // ÆüÍˤ«¤é¤ÎÍËÆü : 0 ... 6
int amari,motome;
amari=day % 7;
motome=youbi - amari+1 ;
if( motome< 0 ) motome=7+motome;
textBox12->Text=wday[motome]; // ÆüÍˤ«¤é¤ÎÍËÆü : 0 ... 6
textBox13->Text=amari.ToString(); // ÆüÍˤ«¤é¤ÎÍËÆü : 0 ... 6

// textBox8->Text=ws[dt->tm_wday]; // ÆüÍˤ«¤é¤ÎÍËÆü : 0 ... 6

//==========================
}

private: System::Void Form1_Load(System::Object^ sender, System::EventArgs^ e) {

textBox1->Text="1945"; //¸¶ÇúÅê²¼Æü
textBox2->Text="8";
textBox3->Text="6";
time_t current;
struct tm *local;
time(&current); /* ¸½ºß¤Î»þ¹ï¤ò¼èÆÀ */
local = localtime(&current); /* ÃÏÊý»þ¤Î¹½Â¤ÂΤËÊÑ´¹ */
textBox4->Text=(local->tm_year + 1900).ToString();
textBox5->Text=(local->tm_mon + 1).ToString() ;
textBox6->Text=(local->tm_mday).ToString() ;
textBox7->Text=(local->tm_year + 1900).ToString();
textBox8->Text=(local->tm_mon + 1).ToString() ;
textBox9->Text=(local->tm_mday).ToString() ;
youbi=local->tm_wday;

day=0;

}


};
}

/*
// tm ¹½Â¤ÂÎ
struct tm
{
int tm_sec; // ÉÃ : 0 ... 59
int tm_min; // ʬ : 0 ... 59
int tm_hour; // »þ : 0 ...23
int tm_mday; // Æü : 1 ... 31
int tm_mon; // 1·î¤«¤é¤Î·î¿ô : 0 ... 11
int tm_year; // 1900ǯ¤«¤é¤Îǯ¿ô
int tm_wday; // ÆüÍˤ«¤é¤ÎÍËÆü : 0 ... 6
int tm_yday; // 1·î1Æü¤«¤é¤ÎÆü¿ô : 0 ... 365
int tm_isdst; // ²Æ»þ´Ö¤ÏÀµ¡¢¤½¤¦¤Ç¤Ê¤±¤ì¤Ð0¡¢ÉÔÌÀ¤ÏÉé
};

*/

¼Â¹Ô¡¡¥×¥í¥°¥é¥à¥À¥¦¥ó¥í¡¼¥É

bior-v2.exe


¤Ä¤Å¤­

 
Æ°²è¤¬»Ý¤¯¤´Í÷¤¤¤¿¤À¤±¤Ê¤¤¾ì¹ç¤ÏºÇ¿·¤ÎFlash Player¤ò¥¤¥ó¥¹¥È¡¼¥ë¤·¤Æ¤¯¤À¤µ¤¤
web ¥Ö¥é¥¦¥¶¤¬¥¤¥ó¥¿¡¼¥Í¥Ã¥È¥¨¥¯¥¹¥×¥í¡¼¥é£¶¡Ê£É£Å£¶¡Ë°Ê²¼¤Î¾ì¹ç¥á¥Ë¥å¡¼¤¬Êø¤ì¤Æ¤·¤Þ¤¦¤³¤È¤¬¤¢¤ê¤Þ¤¹¡£
¥¤¥ó¥¿¡¼¥Í¥Ã¥È¥¨¥¯¥¹¥×¥í¡¼¥é£·¡¢Sleipnir¡¢Mozilla Firefox¤ò¤´»ÈÍѤ¯¤À¤µ¤¤¡£