Курсовая работа: Программа "Морской бой"
Panel2 -> Caption = «Расставьте корабли»;
Fild1 -> Picture -> LoadFromFile («net.bmp»);
Fild2 -> Picture -> LoadFromFile («net.bmp»);
HE = new HandlersOfEvents (Fild1, Fild2);
}
// –
UShipBattle.h
// –
#ifndef UShipBattleH
#define UShipBattleH
// –
#include <Classes.hpp>
#include <Controls.hpp>
#include <StdCtrls.hpp>
#include <Forms.hpp>
#include <Buttons.hpp>
#include <ExtCtrls.hpp>
#include <Graphics.hpp>
#include <ComCtrls.hpp>
// –
struct Ship
{
bool destroy;
int col_deck;
bool *decks;
TPoint *desp_of_part;
};
class Flot
{