📄 windlg.cpp
字号:
}
void CWinDlg::OnCheck15()
{
// TODO: Add your control notification handler code here
UpdateData(true);
Total();
}
void CWinDlg::OnCheck16()
{
// TODO: Add your control notification handler code here
UpdateData(true);
Total();
}
void CWinDlg::OnCheck17()
{
// TODO: Add your control notification handler code here
UpdateData(true);
Total();
}
void CWinDlg::OnCheck18()
{
// TODO: Add your control notification handler code here
UpdateData(true);
Total();
}
void CWinDlg::OnCheck19()
{
// TODO: Add your control notification handler code here
UpdateData(true);
Total();
}
void CWinDlg::OnCheck20()
{
// TODO: Add your control notification handler code here
UpdateData(true);
Total();
}
void CWinDlg::OnCheck21()
{
// TODO: Add your control notification handler code here
UpdateData(true);
Total();
}
void CWinDlg::OnCheck22()
{
// TODO: Add your control notification handler code here
UpdateData(true);
Total();
}
void CWinDlg::OnCheck23()
{
// TODO: Add your control notification handler code here
UpdateData(true);
Total();
}
void CWinDlg::OnCheck24()
{
// TODO: Add your control notification handler code here
UpdateData(true);
Total();
}
void CWinDlg::OnCheck25()
{
// TODO: Add your control notification handler code here
UpdateData(true);
Total();
}
void CWinDlg::OnCheck26()
{
// TODO: Add your control notification handler code here
UpdateData(true);
Total();
}
void CWinDlg::OnCheck27()
{
// TODO: Add your control notification handler code here
UpdateData(true);
Total();
}
void CWinDlg::OnCheck28()
{
// TODO: Add your control notification handler code here
UpdateData(true);
Total();
}
void CWinDlg::OnCheck29()
{
// TODO: Add your control notification handler code here
UpdateData(true);
Total();
}
void CWinDlg::OnCheck30()
{
// TODO: Add your control notification handler code here
UpdateData(true);
Total();
}
void CWinDlg::OnCheck31()
{
// TODO: Add your control notification handler code here
UpdateData(true);
Total();
}
void CWinDlg::OnCheck32()
{
// TODO: Add your control notification handler code here
UpdateData(true);
Total();
}
void CWinDlg::OnCheck33()
{
// TODO: Add your control notification handler code here
UpdateData(true);
Total();
}
void CWinDlg::OnCheck34()
{
// TODO: Add your control notification handler code here
UpdateData(true);
Total();
}
void CWinDlg::OnCheck35()
{
// TODO: Add your control notification handler code here
UpdateData(true);
Total();
}
void CWinDlg::OnCheck36()
{
// TODO: Add your control notification handler code here
UpdateData(true);
Total();
}
void CWinDlg::OnCheck37()
{
// TODO: Add your control notification handler code here
UpdateData(true);
Total();
}
void CWinDlg::OnCheck38()
{
// TODO: Add your control notification handler code here
UpdateData(true);
Total();
}
void CWinDlg::OnCheck39()
{
// TODO: Add your control notification handler code here
UpdateData(true);
Total();
}
void CWinDlg::OnCheck4()
{
// TODO: Add your control notification handler code here
UpdateData(true);
Total();
}
void CWinDlg::OnCheck40()
{
// TODO: Add your control notification handler code here
UpdateData(true);
Total();
}
void CWinDlg::OnCheck41()
{
// TODO: Add your control notification handler code here
UpdateData(true);
Total();
}
void CWinDlg::OnCheck42()
{
// TODO: Add your control notification handler code here
UpdateData(true);
Total();
}
void CWinDlg::OnCheck5()
{
// TODO: Add your control notification handler code here
UpdateData(true);
Total();
}
void CWinDlg::OnCheck6()
{
// TODO: Add your control notification handler code here
UpdateData(true);
Total();
}
void CWinDlg::OnCheck7()
{
// TODO: Add your control notification handler code here
UpdateData(true);
Total();
}
void CWinDlg::OnCheck8()
{
// TODO: Add your control notification handler code here
UpdateData(true);
Total();
}
void CWinDlg::OnCheck9()
{
// TODO: Add your control notification handler code here
UpdateData(true);
Total();
}
void CWinDlg::Total()
{
int i,n=0,m=0;
int s[14][3]={{m_1,m_15,m_29},{m_2,m_16,m_30},{m_3,m_17,m_31},{m_4,m_18,m_32},{m_5,m_19,m_33},{m_6,m_20,m_34},{m_7,m_21,m_35},{m_8,m_22,m_36},{m_9,m_23,m_37},{m_10,m_24,m_38},{m_11,m_25,m_39},{m_12,m_26,m_40},{m_13,m_27,m_41},{m_14,m_28,m_42}};
for (i=0;i<14;i++)
{
m=*s[i] + *(s[i]+1) + *(s[i]+2);
if(m==0)
n=n+1;
}
if(n==5)Total9();
else Total14();
}
void CWinDlg::Total9()
{
int i,n=1,m;
int s[14][3]={{m_1,m_15,m_29},{m_2,m_16,m_30},{m_3,m_17,m_31},{m_4,m_18,m_32},{m_5,m_19,m_33},{m_6,m_20,m_34},{m_7,m_21,m_35},{m_8,m_22,m_36},{m_9,m_23,m_37},{m_10,m_24,m_38},{m_11,m_25,m_39},{m_12,m_26,m_40},{m_13,m_27,m_41},{m_14,m_28,m_42}};
for(i=0;i<14;i++)
{
m=*s[i] + *(s[i]+1) + *(s[i]+2);
if(m==0)
m=1;
n=m*n;
}
m_edit=n;
UpdateData(FALSE);
}
void CWinDlg::Total14()
{
int i,n;
int s[14][3]={{m_1,m_15,m_29},{m_2,m_16,m_30},{m_3,m_17,m_31},{m_4,m_18,m_32},{m_5,m_19,m_33},{m_6,m_20,m_34},{m_7,m_21,m_35},{m_8,m_22,m_36},{m_9,m_23,m_37},{m_10,m_24,m_38},{m_11,m_25,m_39},{m_12,m_26,m_40},{m_13,m_27,m_41},{m_14,m_28,m_42}};
n=1;
for (i=0;i<14;i++)
{
//p=p+1 ;
n=(*s[i] + *(s[i]+1) + *(s[i]+2))*n;
}
m_edit=n;
UpdateData(FALSE);
}
void CWinDlg::Onall()
{
// TODO: Add your control notification handler code here
m_1=0;
m_2=0;
m_3=0;
m_4=0;
m_5=0;
m_6=0;
m_7=0;
m_8=0;
m_9=0;
m_10=0;
m_11=0;
m_12=0;
m_13=0;
m_14=0;
m_15=0;
m_16=0;
m_17=0;
m_18=0;
m_19=0;
m_20=0;
m_21=0;
m_22=0;
m_23=0;
m_24=0;
m_25=0;
m_26=0;
m_27=0;
m_28=0;
m_29=0;
m_30=0;
m_31=0;
m_32=0;
m_33=0;
m_34=0;
m_35=0;
m_36=0;
m_37=0;
m_38=0;
m_39=0;
m_40=0;
m_41=0;
m_42=0;
Total();
UpdateData(FALSE);
}
void CWinDlg::OnRadio2()
{
// TODO: Add your control notification handler code here
UpdateData(true);
}
void CWinDlg::OnRadio1()
{
// TODO: Add your control notification handler code here
UpdateData(true);
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -