Контрольная работа: Разработка программы на четырех языках программирования
//---------------------------------------------------------------------------
#include <vcl.h>
#pragma hdrstop
#include "Unit1.h"
//---------------------------------------------------------------------------
#pragma package(smart_init)
#pragma resource "*.dfm"
TForm1 *Form1;
//---------------------------------------------------------------------------
__fastcall TForm1::TForm1(TComponent* Owner)
: TForm(Owner)
{
}
//---------------------------------------------------------------------------
void __fastcall TForm1::Button1Click(TObject *Sender)
{
Form1->Image1-> Canvas->
Form1->Image1-> Canvas->MoveTo(60,30);
Form1->Image1-> Canvas->LineTo(60,90);
Form1->Image1-> Canvas->LineTo(90,30);
Form1->Image1-> Canvas->LineTo(90,90);
Form1->Image1-> Canvas->MoveTo(100,30);
Form1->Image1-> Canvas->LineTo(100,90);
Form1->Image1-> Canvas->Ellipse(100,30,130,60);
Form1->Image1-> Canvas->Ellipse(100,60,135,90);
Form1->Image1-> Canvas->MoveTo(145,90);
Form1->Image1-> Canvas->LineTo(160,30);
Form1->Image1-> Canvas->LineTo(175,90);
Form1->Image1-> Canvas->MoveTo(155,60);