Тема: incompatible types
Показать сообщение отдельно
  #1  
Старый 21.05.2011, 22:21
nupinh nupinh вне форума
Прохожий
 
Регистрация: 21.05.2011
Сообщения: 1
Репутация: 10
По умолчанию incompatible types

PHP код:
Type mas=array[1..100,1..100of real;
Type mass=array[0..1000of real;

var
  
Form1TForm1;
  
Dk:maspw,np:mass;
  
FrFwTextFile;

implementation

uses Unit2
;
function 
Dinkoeef(pw,np:massn,m:integer; var Dk:mas):realexternal 'dinkoeff.dll' index 10;

{
$R *.dfm}

procedure TForm1.BitBtn3Click(SenderTObject);
var
  
i,j,n,m:integer;
  
pwminpwmaxnpminnpmaxh1h2real;
begin
assignfile
(fw,'a.txt');
 
rewrite(fw);
 
writeln(fw,strtofloat(Edit1.Text));
 
writeln(fw,strtofloat(Edit2.Text));
 
writeln(fw,strtofloat(Edit3.Text));
 
writeln(fw,strtofloat(Edit4.Text));
 
writeln(fw,strtofloat(Edit5.Text));
 
writeln(fw,strtofloat(Edit6.Text));
  
closefile(fw);


h1:=(pwmax-pwmin)/(n-1);
h2:=(npmax-npmin)/(m-1);

For 
i:=1 to m do begin Form1.StringGrid1.Cells[i,0]:=FloatToStrf(pwmin,fffixed,2,2);
pw[i]:=pwmin;
pwmin:=pwmin+h1;
end;

For 
j:=1 to n do begin Form1.StringGrid1.Cells[0,j]:=FloatToStrf(npmin,fffixed,2,2);
np[j]:=npmin;
npmin:=npmin+h2;
end;

Form1.StringGrid1.RowCount:=n+1;
Form1.StringGrid1.ColCount:=m+1;

Dinkoeef(pw,np,Dk);
For 
i:=1 to m do For j:=1 to n do begin Form1.StringGrid1.Cells[i,j]:=FloatToStrf(Dk[i+1,j+1],fffixed,7,4);
end;

  
form1.StringGrid1.Cells[0,0]:='2n/p\w/p';
   
end


выдает ошибку Incompatible types 'mas' and 'integer'
Ответить с цитированием