清明诗与清明词(请问牧童,请问酒家)

weixin_44536322 2019-04-18 05:06:49





0001 //部分控件代码

0002 int ask = 0;

///////////////////////////

0027 private: System::Void button1_Click(System::Object^ sender, System::EventArgs^
0028 e) {

0029

0030 //"诗改编词"

0031 this->button1 ->Visible =true;

0032 this->button1 ->Enabled =false;

0033

0034 this->button2 ->Visible =true;

0035 this->button2 ->Enabled =false;

0036

0037 this->button3 ->Visible =true;//请问牧童

0038 this->button4 ->Visible =true;//请问酒家

0039

0040 this->button5 ->Visible =false;

0041 this->button6 ->Visible =false;

0042 this->button7 ->Visible =false;

0043 this->button8 ->Visible =false;

0044 this->button9 ->Visible =false;

0045 this->button10 ->Visible =false;

0046

0047 this->button11 ->Visible =false;

0048 this->button12 ->Visible =false;

0049 this->button13 ->Visible =false;

0050 this->button14 ->Visible =false;

0051

0052

0053 }

0054 private: System::Void button3_Click(System::Object^ sender, System::EventArgs^
0055 e) {

0056

0057 //改编诗为"请问牧童"

0058 this->button1 ->Visible =true;

0059 this->button1 ->Enabled =false;

0060

0061 this->button2 ->Visible =true;

0062 this->button2 ->Enabled =false;

0063

0064 this->button3 ->Visible =true;

0065 this->button3 ->Enabled =false;

0066

0067 this->button4 ->Visible =false;

0068 this->button4 ->Enabled =false;

0069

0070 this->button5 ->Visible =true;//下一个按钮

0071 this->button6 ->Visible =false;

0072 this->button7 ->Visible =false;

0073 this->button8 ->Visible =false;

0074 this->button9 ->Visible =false;

0075 this->button10 ->Visible =false;

0076 this->button11 ->Visible =false;

0077 this->button12 ->Visible =false;

0078 this->button13 ->Visible =false;

0079 this->button14 ->Visible =false;

0080

0081 ask = 1;//确定值

0082

0083 }

/////////////////////////////

0114 private: System::Void button5_Click(System::Object^ sender, System::EventArgs^
0115 e) {

0116

0117 //"清明时节雨"

0118 this->button1 ->Visible =true;

0119 this->button1 ->Enabled =false;

0120

0121 this->button2 ->Visible =true;

0122 this->button2 ->Enabled =false;

0123 switch(ask)

0124 {

0125 case 1: this->button3 ->Visible =true;

0126 this->button3 ->Enabled =false;

0127 this->button4 ->Visible =false;

0128 this->button4 ->Enabled =false;

0129 break;

0130 case 2: this->button3 ->Visible =false;

0131 this->button3 ->Enabled =false;

0132 this->button4 ->Visible =true;

0133 this->button4 ->Enabled =false;

0134 }

0135

0136 this->button5 ->Visible =false;

0137 this->button6 ->Visible =true;//下一个按钮

0138 this->button7 ->Visible =false;

0139 this->button8 ->Visible =false;

0140 this->button9 ->Visible =false;

0141 this->button10 ->Visible =false;

0142 this->button11 ->Visible =false;

0143 this->button12 ->Visible =false;

0144 this->button13 ->Visible =false;

0145 this->button14 ->Visible =false;

0146

0147

0148 }

/////////////////////////
0470 private: System::Void button14_Click(System::Object^ sender, System::EventArgs^
0471 e) {

0472

0473 //"牧童遥指杏花村"

0474 this->button1 ->Visible =true;

0475 this->button1 ->Enabled =false;

0476

0477 this->button2 ->Visible =true;

0478 this->button2 ->Enabled =false;

0479

0480 this->button3 ->Visible =true;//请问牧童

0481 this->button3 ->Enabled =true;

0482

0483 this->button4 ->Visible =true;//请问酒家

0484 this->button4 ->Enabled =true;

0485

0486 this->button5 ->Visible =false;

0487 this->button6 ->Visible =false;

0488 this->button7 ->Visible =false;

0489 this->button8 ->Visible =false;

0490 this->button9 ->Visible =false;

0491 this->button10 ->Visible =false;

0492 this->button11 ->Visible =false;

0493 this->button12 ->Visible =false;

0494 this->button13 ->Visible =false;

0495 this->button14 ->Visible =false;

0496

0497 switch (ask)

0498 {

0499 case 1: 牧童遥指杏花村

0500 break;

0501 case 2: //牧童遥指杏花村

0502

0503 }

0504

0505 ask = 0;//值清零

0506 }
...全文
34 1 打赏 收藏 转发到动态 举报
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
636f6c696e 2019-04-18
  • 打赏
  • 举报
回复
问题都不会提么?

33,311

社区成员

发帖
与我相关
我的任务
社区描述
C/C++ 新手乐园
社区管理员
  • 新手乐园社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧