문제

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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top