, . , Label Button. :
void _fastcall TForm1::Button1Click(Tobject *Sender)
{
int i,j;
double A;
for(i=0; i<50;i++)
A*=10000; // A 10000
Label1->Caption = A = +B;
}
, , . , | , . | , F9.
. :
[C++ Warning] Unit1.cpp (23): W8013 Possible use of A before definition
([C++ ] Unit1.cpp, 23: W8013 A, , , )
, A 23 . , , . :
A*=10000; // A 10000
, :
double A=1;
A , .
:
[C++ Error] Unit1.cpp (24): E2451 Undefined symbol B
([C++ ] Unit1.cpp, 24: E2451 B)
.
Label1->Caption = A = +B;
A B, . , .
, .
:
[C++ Warning] Unit1.cpp (25): W8080 j is declared but never used
([C++ ] Unit1.cpp, 25: W8080 j , )
j .
:
[C++ Warning] Unit1.cpp (25): W8057 Parameter Sender is never used
([C++ ] Unit1.cpp, 25: W8057 Sender )
Sender , . , .
, - B.
B A :
|
|
[C++ Error] Unit1.cpp (24): E2060 Illegal use of floating point
([C++ ] Unit1.cpp, 24: E2060 )
Label1->Caption = A = +A;
A = A. .
double A=1;
void _fastcall TForm1::Button1Click(Tobject *Sender)
{
int i;
for(i=0; i<50;i++)
A*=10000; // A 10000
Label1->Caption = A = + FloatToStr(A);
}
.
, , . . Unit1.cpp, , : Project1.exe EOverflow . . Step Run .
, . (exceptions) .
OK, , . , .