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

pc2

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

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

 






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

 

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

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

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

Top¤ËÌá¤ë

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

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


¹©ºî


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


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




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

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

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

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


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

 

 

 

 

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

 

Visual Studio 2008 Express Edition ¤Ç¥È¥é¥ó¥×¥²¡¼¥à¤òºî¤í¤¦
3ÆüÌܤγؽ¬

¥È¥é¥ó¥×¤Îɽ¼¨¤¬´°À®¤·¤¿¤Î¤Ç¡¡

­§Íð¿ô¤òȯÀ¸¤·¡¡¥È¥é¥ó¥×¤ò¥·¥ã¥Ã¥Õ¥ë¤·¤Þ¤¹¡£

#pragma once
¤Îľ²¼¤ËÄêµÁ¤·¤Þ¤¹

¼¡¤ÎÇÛÎó¤òºî¤ê¤Þ¤¹¡£¤³¤³¤Ç¤Ï¤³¤Î¥²¡¼¥à¤ËɬÍפʤ¹¤Ù¤Æ¤ÎÇÛÎó¤ò
¥Ñ¥Ö¥ê¥Ã¥¯¤Çºî¤ê¤Þ¤¹(¤¹¤Ù¤Æ¤Î¥µ¥Ö¥ë¡¼¥Á¥ó¤«¤é»²¾È²Äǽ)
ÀÖ¤¤Éôʬ¤òÄɲÃ

#pragma once

static int card[55];
static int hai[12];
static int keta[12];
static int yaku[12];
static int start_flag=0;
static int hoji1=0;
static int hoji2=0;
static int hoji3=0;
static int hoji4=0;
static int hoji5=0;
static int tokuten=0;

namespace toranpu {


­¨stdaf.h¤ò¥¯¥ê¥Ã¥¯¤·¤Æ

#include <stdio.h>
¤òÄɲ乤롡ÀΤÎC¤È¸ß´¹
À­¤ò»ý¤¿¤»¤ë

stdio.h


Form1¤Ë¥Æ¥­¥¹¥È¥Ü¥Ã¥¯¥¹£±¡Ý£´¤òŽ¤êÉÕ¤±¤ë

textbox


­¨Form1¥Ç¥¶¥¤¥ó¢ª¡¡¡¡button1¤ò¥À¥Ö¥ë¥¯¥ê¥Ã¥¯¤·¤ÆÄûÀµ
ÀĤ¤Éôʬ¤Ïºï½ü

private: System::Void button1_Click(System::Object^ sender, System::EventArgs^ e) {
DispHai( 0,1);
DispHai( 1,2);
DispHai( 111,3);
DispHai( 212,4);
DispHai( 313,5);

ÀÖ¤ÎÉôʬ¤òÄɲÃ

private: System::Void button1_Click(System::Object^ sender, System::EventArgs^ e) {
if(start_flag ==0){ //°ìÅÙÄ̲ᤷ¤¿¤é2ÅÙÌܤò¶Ø»ß¤¹¤ë
int amax,xrand,nohai;
int xx,yy,y;
char buf[80];
Graphics^ gr=this->CreateGraphics();
//ʸ»ú¤ÎÍÑ°Õ
String^ string1;
String^ string2;
Brush^ brush=gcnew SolidBrush(Color::Black);
//System::Drawing::Font^ font=gcnew System::Drawing::Font("MS ¥´¥·¥Ã¥¯",10);
//ʸ»ú¤ÎÍÑ°Õ½ªÎ»
Random^ rand=gcnew Random(); //¤ÇÍð¿ôrand¤òÀ¸À®¤·¤Æ¤ª¤­¡¢
//£²¡Ë¡¡0°Ê¾åint amax̤Ëþ¤ÎÍð¿ô¤òȯÀ¸¤·¤¿¤¤¾ì¹ç¤Ë¤Ï¡¢
string2="Íð¿ôÃÍ";
amax=52;
for(xx=1;xx<54;xx++) card[xx]=0;
yy=1;
while(yy<20){
xrand=rand->Next(amax)+1;
int flag=0;
for(xx=1;xx<53;xx++) {if(card[xx]==xrand) flag=1;}
if(flag==0){ card[yy]=xrand;
//ʸ»ú¤ÇÍð¿ô¤ò³Îǧ
sprintf_s(buf,80," %3d ",xrand);
string1=gcnew String(buf);
//gr->DrawString(string1,font,brush,(float)16*yy,(float)450);
string2=string2+string1;
//ʸ»ú¤Ç³Îǧ½ªÎ»
yy++;}

}
//ʸ»ú¤Çɽ¼¨
//MessageBox::Show(string2);

textBox3->Text=string2;
string2="ÊÑ´¹ÃÍ";
for(y=1;y<53;y++){
if( card[y] > 13 && card[y] <= 26) card[y] = card[y] + 100 - 13;
if( card[y] > 26 && card[y] <= 39) card[y] = card[y] + 200 - 26;
if( card[y] > 39 && card[y] <= 52) card[y] = card[y] + 300 - 39;
} //end for y
for(xx=1;xx<6;xx++){
hai[xx]=card[xx];
//ʸ»ú¤ÇÍð¿ô¤ò³Îǧ
sprintf_s(buf,80," %3d ",hai[xx]);
string1=gcnew String(buf);
string2=string2+string1;
//ʸ»ú¤Ç³Îǧ½ªÎ»
}
//ʸ»ú¤Çɽ¼¨
textBox4->Text=string2;
for(xx=1;xx<6;xx++){
nohai=hai[xx];
DispHai(nohai,xx);
}
hoji1=0;
hoji2=0;
hoji3=0;
hoji4=0;
hoji5=0;
start_flag=1; //°ìÅÙÄ̲ᤷ¤¿¤é2ÅÙÌܤò¶Ø»ß¤¹¤ë¥Õ¥é¥Ã¥°
}//end if start_flag=1;°ìÅÙÄ̲ᤷ¤¿¤é2ÅÙÌܤò¶Ø»ß¤¹¤ë
}


 

run1

¤ò²¡¤·¤Æ¼Â¹Ô¤·¤Æ¤ß¤ë

run2

·ë²Ì

£ò£õ£î

¤³¤ì¤¬É½¼¨¤µ¤ì¤ì¤ÐÀ®¸ù¤Ç¤¹

¸«ËÜ toranpu3.exe toranpu3.zip


ÀâÌÀ

Íð¿ô¡¡1¤«¤é52¤òȯÀ¸¤µ¤»¡¡1¤«¤é52¤¬¥À¥Ö¤é¤Ê¤¤¤è¤¦¤Ë¤·¤Æ card[xx]¤ËÂåÆþ¤¹¤ë
1¤«¤é13¤Ï¤½¤Î¤Þ¤Þ¡¡¡¡¥¹¥Ú¡¼¥É¤È¤¹¤ë
13¤«¤é26¤Ï101¤«¤é113¡¡¥À¥¤¥ä¤È¤¹¤ë
27¤«¤é39¤Ï201¤«¤é213¡¡¥Ï¡¼¥È¤È¤¹¤ë
40¤«¤é52¤Ï301¤«313¡¡¥¯¥í¡¼¥Ð¤È¤¹¤ë

¤½¤Î¤¦¤Á1¤«¤é52¤Î10Ëç¤Î¿ôÃͤòɽ¼¨¤¹¤ë

card[1¤«¤é5]¤Î¥«¡¼¥É¤Î¿Þ¤òɽ¼¨¤¹¤ë¡£

 

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