Einzelnen Beitrag anzeigen

Benutzerbild von Neutral General
Neutral General

Registriert seit: 16. Jan 2004
Ort: Bendorf
5.219 Beiträge
 
Delphi 10.2 Tokyo Professional
 
#1

Kleines Übersetzungsproblem C-->Pascal

  Alt 24. Mär 2007, 11:32
Hi,

Code:
char buff1[5];
char buff2[9];
int *res;
res=buff1+12;
*res=*res+10;
Ich bekomm das auf Teufel komm raus nicht übersetzt

also normal müsste das doch so Aussehn (das oben is ne procedure):

Delphi-Quellcode:
procedure Egal;
var Buff1: Array[0..4] of Char;
    Buff2: Array[0..8] of Char;
      res: PInteger;
begin
  res := Buff1[0] + 12;
  @res := @res+10;
end;
aber das haut natürlich nicht hin....

Gruß
Neutral General
Michael
"Programmers talk about software development on weekends, vacations, and over meals not because they lack imagination,
but because their imagination reveals worlds that others cannot see."
  Mit Zitat antworten Zitat