السلام عليكم..
اخواني روادالـC++ اريدتحويل هذا الكود من الباسكال الـC++ ارجوا منكم المساعدة فأنا مبتديء؟
TYPE
vertex=record
x,y:real
end;
varray=array[1..25] of vertex;{vertex list
bdy=record
limit:real;{window edge value
side: (top,bottom,left,right)
end;
Function inside(pt:vertex:edge:bdy):boolean;
{return true if the polygon vertex,pt,is inside the window edge.this is simplified since the window has sides parallel to the x,y coordinate axis}
begin
with edge do
case side of
top:inside:=pt.y<=limit;
bottom:inside:=pt.y>=limit;
left:inside:=pt.x>=limit;
right:inside:=pt.x<=limit
end{case}
end;{inside}
procedure Out(pt:vertex);
{place vertex pt in the polyout array.In performing this,it also increments the size of the vertices in the array}
begin
outlen:=outlen+1{number of vertices in array}
polyout[outlen]:=pt
end;{out}فيه كمان طلب اخير لو تكرمتم:
FUNCTION INUMفي الباسكال ماذا يقابلها في الـC
وكيف نكتب هذه العباره في الـC
(X^2)-(10X)+1|/1,20)|
جزاكم الله كل الخير..وفرج عنكم همومكم..