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

pc2

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

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

 






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

 

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

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

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

Top¤ËÌá¤ë

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

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


¹©ºî


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


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




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

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

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

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


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

 

 

 

 

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

 

Visual Studio 2010 Express Edition ¤ÇÌÂÏ©¤òºî¤í¤¦

­£¡¡¥¯¥é¥¹¤È¤·¤Æ2¼¡¸µÇÛÎó¤òÍøÍѤ·»Ò¥¦¥¤¥ó¥É¥¦¤«¤é¤â»²¾È¤µ¤»¤ë

»Ò¥¦¥¤¥ó¥É¥¦¡Ú»Ò¥Õ¥©¡¼¥à¡¡¡¢¡¡»ÒForm¡Û¡¡¤Îºî¤êÊý

»Ò¥¦¥¤¥ó¥É¥¦¤Î¸Æ¤Ó½Ð¤·Êý

¼«Ê¬¤ÇÄêµÁ¤·¤¿Form¤Î̾Á°koForm¤È¤¹¤ë

koForm^ kfm=gcnew koForm();
¡¡¡¡¡¡¡¡¡¡¡¡ kfm->ShowDialog();

¥¯¥é¥¹¤Îºî¤êÊý

Äɲá¡¿·¤·¤¤¹àÌÜ¡¡¥³¥ó¥Ý¡¼¥Í¥ó¥È¥¯¥é¥¹¡¡data¡¡¤È¤·¤Ædata¡¡¥¯¥é¥¹¤òºî¤ë

data.h¤ÎÃæ¿È

#pragma once
ref class data
{
public:
data(void);
static array<int ,2>^ map_data=gcnew array<int,2>(17,17);
};

data.CPP¤ÎÃæ¿È

#include "StdAfx.h"
#include "data.h"
data::data(void)
{
for(int i;i<17;i++){
for(int j;j<17;j++){
map_data[i,j]=0;
}
}
}


½é´üÃͤòÂåÆþ¤¹¤ë¾ì¹ç¤Î½ñ¼°

static array<int ,2>^ map_data=gcnew array<int,2>{{1,2,3},{3,4,6}};
static array<int ,2>^ map_data=gcnew array<int,2>(3,3){{1,2,3},{3,4,6}};



­£ Form.h¡¡¤ÎÎã¡¡ÀÖ»ú¤¬ÆþÎÏ


#pragma once
#include "data.h"
namespace maze2 {
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::MenuStrip^ menuStrip1;
private: System::Windows::Forms::ToolStripMenuItem^ filesToolStripMenuItem;
private: System::Windows::Forms::ToolStripMenuItem^ lOadToolStripMenuItem;
private: System::Windows::Forms::OpenFileDialog^ openFileDialog1;
//------------------------------------
public:
static int X0=17,Y0=17;
array<int ,2>^ data;

//------------------------------------
protected:
/// <summary>
/// »ÈÍÑÃæ¤Î¥ê¥½¡¼¥¹¤ò¤¹¤Ù¤Æ¥¯¥ê¡¼¥ó¥¢¥Ã¥×¤·¤Þ¤¹¡£
/// </summary>
~Form1()
{
if (components)
{
delete components;
}
}

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

#pragma region Windows Form Designer generated code
/// <summary>
/// ¥Ç¥¶¥¤¥Ê ¥µ¥Ý¡¼¥È¤ËɬÍפʥ᥽¥Ã¥É¤Ç¤¹¡£¤³¤Î¥á¥½¥Ã¥É¤ÎÆâÍƤò
/// ¥³¡¼¥É ¥¨¥Ç¥£¥¿¤ÇÊѹ¹¤·¤Ê¤¤¤Ç¤¯¤À¤µ¤¤¡£
/// </summary>
void InitializeComponent(void)
{
this->menuStrip1 = (gcnew System::Windows::Forms::MenuStrip());
this->filesToolStripMenuItem = (gcnew System::Windows::Forms::ToolStripMenuItem());
this->lOadToolStripMenuItem = (gcnew System::Windows::Forms::ToolStripMenuItem());
this->openFileDialog1 = (gcnew System::Windows::Forms::OpenFileDialog());
this->menuStrip1->SuspendLayout();
this->SuspendLayout();
//
// menuStrip1
//
this->menuStrip1->Items->AddRange(gcnew cli::array< System::Windows::Forms::ToolStripItem^ >(1) {this->filesToolStripMenuItem});
this->menuStrip1->Location = System::Drawing::Point(0, 0);
this->menuStrip1->Name = L"menuStrip1";
this->menuStrip1->Size = System::Drawing::Size(535, 26);
this->menuStrip1->TabIndex = 0;
this->menuStrip1->Text = L"menuStrip1";
//
// filesToolStripMenuItem
//
this->filesToolStripMenuItem->DropDownItems->AddRange(gcnew cli::array< System::Windows::Forms::ToolStripItem^ >(1) {this->lOadToolStripMenuItem});
this->filesToolStripMenuItem->Name = L"filesToolStripMenuItem";
this->filesToolStripMenuItem->Size = System::Drawing::Size(46, 22);
this->filesToolStripMenuItem->Text = L"Files";
//
// lOadToolStripMenuItem
//
this->lOadToolStripMenuItem->Name = L"lOadToolStripMenuItem";
this->lOadToolStripMenuItem->Size = System::Drawing::Size(152, 22);
this->lOadToolStripMenuItem->Text = L"Load";
this->lOadToolStripMenuItem->Click += gcnew System::EventHandler(this, &Form1::lOadToolStripMenuItem_Click);
//
// openFileDialog1
//
this->openFileDialog1->FileName = L"openFileDialog1";
//
// Form1
//
this->AutoScaleDimensions = System::Drawing::SizeF(6, 12);
this->AutoScaleMode = System::Windows::Forms::AutoScaleMode::Font;
this->ClientSize = System::Drawing::Size(535, 430);
this->Controls->Add(this->menuStrip1);
this->MainMenuStrip = this->menuStrip1;
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->menuStrip1->ResumeLayout(false);
this->menuStrip1->PerformLayout();
this->ResumeLayout(false);
this->PerformLayout();

}
#pragma endregion
private: System::Void Form1_Paint(System::Object^ sender, System::Windows::Forms::PaintEventArgs^ e) {
Graphics^ gr=e->Graphics;
//¸¶ºÂɸ¤òÉÁ¤¯
int xx,yy,c;
int x1,y1;
FILE *fp;
if ((fp = fopen("c:\\2003kantou.maz", "rb")) == NULL) {
// ¥¨¥é¡¼½èÍý
}
for (y1=0;y1<16;y1++){
for (x1=0;x1<16;x1++){
c = getc(fp);
data[x1,y1]=c;
}
}
//------
Pen^ Penred1=gcnew Pen(Color::Red,1 );
Penred1->Width = 4.0F;
int y2=100;
int ww=20; //»Í³Ñ¤ÎÂ礭¤µ
for(x1=0;x1<X0;x1++){
for(y1=0;y1<Y0;y1++){
xx=x1*ww+10;
yy=y1*ww+10;
if((data::map_data[y1,x1] & 2)==2) gr->DrawLine(Penred1, 0+xx,y2-0+yy,ww+xx,y2- 0+yy);
if((data::map_data[y1,x1] & 4)==4) gr->DrawLine(Penred1,ww+xx,y2-0+yy,ww+xx,y2-ww+yy);
if((data::map_data[y1,x1] & 8)==8) gr->DrawLine(Penred1,ww+xx,y2-ww+yy,0+xx,y2-ww+yy);
if((data::map_data[y1,x1] & 1)==1) gr->DrawLine(Penred1, 0+xx,y2-ww+yy,0+xx,y2- 0+yy);
}
}
//data¤òɽ¼¨¤¹¤ë
System::Drawing::Font^ font1=gcnew System::Drawing::Font("£Í£Ó ¥´¥·¥Ã¥¯",11);
for(int j=0;j<11;j++)
for(int i=0;i<7;i++)
gr->DrawString(data::map_data[i,j].ToString(),font1,Brushes::Black,400+i*16,100+j*16);
}
private: System::Void Form1_Load(System::Object^ sender, System::EventArgs^ e) {
data=gcnew array<int,2>(X0,Y0);
//maze2::data ob;
}
private: System::Void lOadToolStripMenuItem_Click(System::Object^ sender, System::EventArgs^ e) {
String^ fname;
OpenFileDialog^ ofdlg=gcnew OpenFileDialog();
ofdlg->Filter="Data¥Õ¥¡¥¤¥ë(*.maz)|*.maz";
if(ofdlg->ShowDialog()!=System::Windows::Forms::DialogResult::OK) return;
fname=ofdlg->FileName;
FILE *fp;
int c;
char* cfname =
(char*)System::Runtime::InteropServices::Marshal:: StringToHGlobalAnsi(fname).ToPointer();
if ((fp = fopen(cfname, "rb")) == NULL) {
// ¥¨¥é¡¼½èÍý
exit(EXIT_FAILURE);
}
for (int y1=0;y1<16;y1++){
for (int x1=0;x1<16;x1++){
c = getc(fp);
data::map_data[x1,y1]=c;
}
}
Invalidate();

}
};
}


¼Â¹Ô¡¡¥½¡¼¥¹¡¡»²¾È¡¡¥×¥í¥°¥é¥à¥À¥¦¥ó¥í¡¼¥É


 

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