Visual Studio 2008 Express Edition ¤Ç¥È¥é¥ó¥×¥²¡¼¥à¤òºî¤í¤¦
4ÆüÌܤγؽ¬
©Form1¤Ë
¥Æ¥¥¹¥È¥Ü¥Ã¥¯¥¹1¤«¤é£·¤È¥Á¥Ã¥¯¥Ü¥Ã¥¯¥¹£±¥«¥é£µ¤È¥Ü¥¿¥ó£²¤«¤é£´¤òÄɲ乤ë
ªForm1¥Ç¥¶¥¤¥ó¢ª¡¡checkBox¥Á¥§¥¯¥Ü¥Ã¥¯¥¹£±¤«¤é£µ¤ò¥À¥Ö¥ë¥¯¥ê¥Ã¥¯¤·¤ÆÀÖ»ú¤òÄɲÃ
private: System::Void checkBox1_CheckedChanged(System::Object^ sender, System::EventArgs^ e) {
hoji1=1;
}
private: System::Void checkBox2_CheckedChanged(System::Object^ sender, System::EventArgs^ e) {
hoji2=1;
}
private: System::Void checkBox3_CheckedChanged(System::Object^ sender, System::EventArgs^ e) {
hoji3=1;
}
private: System::Void checkBox4_CheckedChanged(System::Object^ sender, System::EventArgs^ e) {
hoji4=1;
}
private: System::Void checkBox5_CheckedChanged(System::Object^ sender, System::EventArgs^ e) {
hoji5=1;
}
«Form1¥Ç¥¶¥¤¥ó¢ª¡¡¥Ü¥¿¥ó£²¤ò¥À¥Ö¥ë¥¯¥ê¥Ã¥¯¤·¤ÆÀÖ»ú¤òÄɲÃ
private: System::Void button2_Click(System::Object^ sender, System::EventArgs^ e) {
if(start_flag==1){
int nohai;
int xx=6;
int x,y,w;
char buf[80];
/*
¥Æ¥¥¹¥È¥Ü¥Ã¥¯¥¹ÆþÎϤòÆÉ¤ß¼è¤ë¤Ë¤Ï¡¢
¡¡¡¡¡¡
String^ string1=textBox1->Text;
¥Æ¥¥¹¥È¥Ü¥Ã¥¯¥¹¤Ëɽ¼¨¤¹¤ë¤Ë¤Ï¡¢
¡¡¡¡¡¡
textBox1->Text=string1;
*/
String^ string1= "¥Ö¥¿¤Ç¤¹";
textBox1->Text=string1;
if (hoji1==0){hai[1]=card[xx]; xx++;}
if (hoji2==0){hai[2]=card[xx]; xx++;}
if (hoji3==0){hai[3]=card[xx]; xx++;}
if (hoji4==0){hai[4]=card[xx]; xx++;}
if (hoji5==0){hai[5]=card[xx]; }
for(xx=1;xx<6;xx++){
nohai=hai[xx];
DispHai(nohai,xx);
} //end for
start_flag=2;
} ¡¡¡¡//end if start_flag==1
}
¬Form1¥Ç¥¶¥¤¥ó¢ª¡¡¥Ü¥¿¥ó3¤ò¥À¥Ö¥ë¥¯¥ê¥Ã¥¯¤·¤ÆÀÖ»ú¤òÄɲÃ
private: System::Void button3_Click(System::Object^ sender, System::EventArgs^ e) {
if (start_flag==2){
int nohai;
int xx;
for(xx=1;xx<6;xx++){
nohai=0;
DispHai(nohai,xx);
} //end for
start_flag=0;
} //end if
}¡¡
¥³¥ó¥Ñ¥¤¥ë¤·¤Æ³Îǧ¤¹¤ë
¤ò²¡¤·¤Æ¼Â¹Ô¤·¤Æ¤ß¤ë
·ë²Ì
¥Ü¥¿¥ó£±¤ò²¡¤¹
¥Ü¥¿¥ó£²¤ò²¡¤¹
¥Ü¥¿¥ó£³¤ò²¡¤¹
¤³¤ì¤¬É½¼¨¤µ¤ì¤ì¤ÐÀ®¸ù¤Ç¤¹
¸«ËÜ toranpu2.exe toranpu2.zip