Delphi source converted to C ++ Builder source code

zhaozj2021-02-16  66

I was born in the early 1980s, just caught up with the era of high-speed development of electronic information. I remember that the high-level language that just contacted is Pascal, but it is just grass to learn some title. But when you start touch C, you can't clean up, c-> tbc-> c -> bc -> vc -> Gun C-> C Builder-> VC .NET, step-based, one step, one footprint, programmer's life Where is the fun? ? ?

Recently got a Delphi source code, ready to expand on this basis, but Delphi always did not use it to handle (of course, Delphi is an excellent development tool), so I am determined to turn the Delphi source to C Builder code, anyway, I want Completely rewritten.

Here I put the keywords corresponding to the conversion in the table below:

delphi syntax of C Builder syntax Remarks var meaningless arguments var reference type & eg: Fun! (var P: Integer) -> Fun (int & p) usesincludeIntegerintBooleanboolprocedurevoid __fastcallnilNULL <> =: == Parent is TPaneldynamic_cast Parent =! 0Parent As TPANEL (TPANEL *) PARENTBEGIN ... END {...} begin ... End; {...} if ...henif (...) while ... Dowhile (...) const digits : array [0..9] of char = '0123456789; char DIGITS [10] = "0123456789"; Array State InheritedParaentClass :: function call parent class function SSLEFT in shiftshift.contains () Does contain Try ... Finally ... try {...} __finally {...} try ... except ..try {...} catch (...) {...}

to be continued!

转载请注明原文地址:https://www.9cbs.com/read-15779.html

New Post(0)