(Line [i]);
} lin1 = 0, p; a = dlina [0], k; (i = 0; i
{(p = i +1; p
{= dlina [p]; = p;
}
} [lin1] = 0; lin2 = 0; = dlina [0]; (i = 0; i
{(p = i +1; p
{= dlina [p]; lin2 = p;
}
} (i = 0; i
{y = peretyn (Line [i], Line [p]); (y == 1)
{[i]. draw (); [p]. draw ();
}
} (4); [lin1]. draw (); [lin2]. draw (); (); (f); ();
}
Програма-меню .. cpp
// Menu
# include
# include
# include
# include
# include
# define COLMENUITEM 5
# define ACTTCOLOR 11
# define PASTCOLOR 0
# define ACTBCOLOR 4
# define PASBCOLOR 6
# define LEFT 0x4b00
# define RIGHT 0x4d00
# define ENTER 0x1c0d
MESSAGE {LShift, RShift, Push};
MenuItem
{: int X; begX; begY; length; str [80];: init (int Y, char * strItem); showact (void); showpas (void); void run (void) = 0;
};
MenuItem :: X = 1;
MenuItem :: init (int Y, char * strItem)
{= Y; = X; (str, strItem); + = strlen (str) +1;
};
MenuItem :: showact (void)
{(ACTBCOLOR); (ACTTCOLOR); (begX, begY, begX + strlen (str), begY);
_setcursortype (_NOCURSOR); (); ("% s", str);
};
MenuItem :: showpas (void)
{(PASTCOLOR); (PASBCOLOR); (begX, begY, begX + strlen (str), begY);
_setcursortype (_NOCURSOR); (); ("% s", str);
};
MenuItem0: public MenuItem
{: void run (void);
};
MenuItem0 :: run (void)
{(P_WAIT, "c: windows system32 notepad.exe", "", "koordyna.txt", NULL);
};
MenuItem1: public MenuItem
{: void run (void);
};
MenuItem1 :: run (void)
{(P_WAIT, "c: TC BIN TC.exe", "", "", NULL);