HWND hwnd, // handle to parent window
LPCTSTR lpOperation, // pointer to string that specifies operation to perform
LPCTSTR lpFile, // pointer to filename or folder name string
LPCTSTR lpParameters, // pointer to string that specifies executable-file parameters
LPCTSTR lpDirectory, // pointer to string that specifies default directory
INT nShowCmd // whether file is shown when opened
);
例 输出三个数中最大值的过程
A:
var n,m,l integer;
begin
n=1;
m=2;
l=3;
larest(n,m,l);
......
end;
B:
procedure largest(a,b,c:integer);
begin
if (a>=b) and (a>=c) then writeln(a);
if (b>=a) and (b>=c) then writeln(b);
if (c>=a) and (c>=b) then writeln(c);
end.