简体   繁体   中英

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?

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 .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM