Структура вычислительной системы: трехмерная с размерностью 4х4х3, страница 6

                                    {

                                                      itoa(m_pcpu[i]->numcpu,f,10);

                                                      CString s1="!!! Процессор ";

                                                      s1+=f;s1+= " НЕ работает !!!";

                                                      m_Lcpu.AddString(s1);

                                                      continue;

                                    }

                                    for(int j=1;j<=m_pcpu[i]->kolzad;j++)

                                    {

                                                      SumTr=m_pcpu[i]->ppispcpu[j-1];

                                                      if(SumTr!=0)

                                                      {int dd=m_pcpu[i]->pnumzad[j-1];

                                                                        itoa(m_pcpu[i]->numcpu,f,10);

                                                                        itoa(m_pcpu[i]->pnumzad[j-1],f1,10);

                                                                        itoa(SumTr,f2,10);

                                                                        for(int k=0;k<m_kolz;k++)

                                                                        {               

                                                                                          if(m_pz[k]->numzad==dd)

                                                                                          {

                                                                                                            itoa(m_pz[k]->time,f3,10);

                                                                                                            break;

                                                                                          }

                                                                        }

                                                                        CString s="CPU ";

                                                                        s+=f;s+=" вып. задачу ";

                                                                        s+=f1;s+=",  P=";

                                                                        s+=f2;

                                                                        s+=",   Время = ";

                                                                        s+=f3;

                                                                        m_Lcpu.AddString(s);

                                                      }

                                    }

                  }

                  CMainFrame *pp=(CMainFrame*)(AfxGetApp()->m_pMainWnd);

                  pp->Invalidate(NULL);

}

void CVkss1Dlg::DelstrLcpu()

{int i=m_Lcpu.GetCount();

                  for(;i>0;i--)m_Lcpu.DeleteString(i-1);

}

void CVkss1Dlg::OnDestroy()

{ CMainFrame *pp=(CMainFrame*)(AfxGetApp()->m_pMainWnd);

                  for (int i=0;i<48;i++)

                  {pp->pcpumf[i]=NULL;

                  if(m_pcpu[i])delete m_pcpu[i];}

 for (int k=0;k<m_kolz;k++)

                   {if(m_pz[k])delete m_pz[k];}

                  pp->Invalidate(NULL);

                  CDialog::OnDestroy();

}

void CVkss1Dlg::Ondelcpu()

{

                  if(m_ndelcpu<=0||m_ndelcpu>48)

                  {AfxMessageBox("Введите номер CPU от 1 до 48");return;}

                                    int nz=0,trz=0,flag1=0;

                                    m_pcpu[m_ndelcpu-1]->bitrab=0;

                                    for(int i=0;i<m_pcpu[m_ndelcpu-1]->kolzad;i++)

                                    {

                                                      nz=m_pcpu[m_ndelcpu-1]->pnumzad[i];