"[BCC32 Error] Unit1.cpp(37): E2379 Statement missing ;
Full parser context
Unit1.cpp(36): parsing: void _fastcall TForm1::Button1Click(TObject *)"
A kod wyglÄ…da tak:
- Kod: Zaznacz cały
//---------------------------------------------------------------------------
#include <vcl.h>
#pragma hdrstop
#include "Unit1.h"
//---------------------------------------------------------------------------
class Point
{
private:
int x, y;
public:
Point() : x (0), y (0) { }
Point(int new_x, int new_y) : x (new_x), y (new_y) { }
void setX(int set_x) { x = set_x; }
void setY(int set_y) { y = set_y; }
int getX() const { return x; }
int getY() const { return y; }
};
#pragma package(smart_init)
#pragma resource "*.dfm"
TForm1 *Form1;
//---------------------------------------------------------------------------
__fastcall TForm1::TForm1(TComponent* Owner)
: TForm(Owner)
{
}
//---------------------------------------------------------------------------
void __fastcall TForm1::Button1Click(TObject *Sender)
{
Point nowy;
}
//---------------------------------------------------------------------------



