Andromeda
Andromeda

Reputation: 550

How to use Delphi Inc() and Dec() procedures in C++ Builder

I'm a newbie programmer. I need to use Delphi's Inc() and Dec() procedures in C++ Builder XE like this:

Inc(Filler);

Dec(GridClientWidth);

Anyone can help me how to do this?

Upvotes: 3

Views: 1388

Answers (1)

David Heffernan
David Heffernan

Reputation: 613382

You are looking for the ++ and -- operators:

Filler++;
GridClientWidth--;

In C++ these operators are baked into the language. In Delphi, Inc and Dec are implemented as intrinsic routines.

Upvotes: 12

Related Questions