Delphi vs C ++ of Syntax (1) Syntax foundation

zhaozj2021-02-16  72

Delphi Syntax contrasts to C Syntax.

There is a time summary in the future, it will be added, for beginners to refer ...

1, characters related:

Operation category C Delphi consideration character assignment const char str = "abc"; const str: char = 'abc'; pay attention to the delimiter of the string

2, C and Delphi operator priority order slightly different

The level of C relational operators is higher than logical operators & ||, ie (from high to low): ... <,>, <=,> =; ==,! =; ... &&, | | ....

Delphi's reverse: ... and, or; =, <>,>, <, <=,> =, in, is ...

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

New Post(0)