Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我是一个新手程序员。我需要像这样在 C++ Builder XE 中使用 DelphiInc()和程序:Dec()
Inc()
Dec()
Inc(Filler); Dec(GridClientWidth);
任何人都可以帮助我如何做到这一点?
您正在寻找++and-- 运算符:
++
--
Filler++; GridClientWidth--;
在 C++ 中,这些运算符被嵌入到语言中。在 Delphi 中,Inc并Dec作为内部例程实现。
Inc
Dec