with-statements
In C++ there are no with-statements. Therefore all elements must be completely qualified.
type TDate = record Day: Integer; Month: Integer; Year: Integer; end;
procedure test(OrderDate: TDate);
begin
with OrderDate do
if Month = 12 then
begin
Month := 1;
Year := Year + 1;
end
else
Month := Month + 1;
end;
->
struct TDate {
int Day;
int Month;
int Year;
};
void __fastcall test ( TDate * OrderDate )
{
/*with OrderDate do*/
if ( OrderDate->Month == 12 )
{
OrderDate->Month = 1;
OrderDate->Year = OrderDate->Year + 1;
}
else
OrderDate->Month = OrderDate->Month + 1;
}
Deutsch
| Latest News |
|
08/15/10
Delphi2Cpp 1.3.3 Bug fixes and other small improvements [more...] |
|
05/25/10
Delphi2Cpp 1.3.0 Developing in Delphi, compiling C++ [more...] |
|
This website is generated from plain text with [Minimal Website ]
|
Minimal Website
is made with TextTransformer
|
TextTransformer is made with Borland
CBuilder
|