Курсовая работа: Алгоритм раскраски графа (точный)
CString strAboutMenu;
strAboutMenu.LoadString(IDS_ABOUTBOX);
if (!strAboutMenu.IsEmpty())
{
pSysMenu->AppendMenu(MF_SEPARATOR);
pSysMenu->AppendMenu(MF_STRING, IDM_ABOUTBOX, strAboutMenu);
}
}
// Set the icon for this dialog. The framework does this automatically
// when the application's main window is not a dialog
SetIcon(m_hIcon, TRUE);// Set big icon
SetIcon(m_hIcon, FALSE);// Set small icon
// TODO: Add extra initialization here
return TRUE; // return TRUE unless you set the focus to a control
}
//------------------------------------------------------------------------------------------
void CKursovojDlg::ud(void)
{
int q;
int min,buf;
for (int u=0 ; u<masskol*2; u++)
for (int i=1 ; i<mass[u][0] ; i++)
{
min=i;
for (int j=i+1 ; j<mass[u][0]+1 ; j++)
if (mass[u][j]<mass[u][min]) min=j;
if (i!=min)
{
buf= mass[u][i];