Online
Registriert seit: 11. Okt 2003
Ort: Elbflorenz
44.034 Beiträge
Delphi 12 Athens
|
Re: Von C nach Delphi: Benötige Hilfe
24. Nov 2009, 15:18
Code:
type name = Name: Type;
type *name = Name: ^Type; = Name: PType[color=#008000]{ein Pointer}[/color];
Code:
typedef struct tnode {
int key; /* leaf value */
char op; /* internal node operator */
struct tnode *left, *right; /* left and right children */
} treenode, *treeptr;
Delphi-Quellcode:
type
PTreeNode = ^TTreeNode;
TTreeNode = record
key: Integer; // leaf value
op: Char; // internal node operator
left, right: PTreeNode; // left and right children
end;
Garbage Collector ... Delphianer erzeugen keinen Müll, also brauchen sie auch keinen Müllsucher.
my Delphi wish list : BugReports/FeatureRequests
|