level 6
uses crt;
var r,e:char;
pn,pa,nam,pas,s:string;
f:text;
mi,i,j:integer;
procedure sorry(error:integer);
begin
case error of
1: begin
clrscr;
textcolor(green);
writeln('Sorry,error 1:Name wrong!');
writeln('Please input Enter to exit...');
readln;
halt;
end;
2: begin
clrscr;
textcolor(green);
writeln('Sorry ,error 2:Password wrong!');
writeln('Please input Enter to exit...');
readln;
halt;
end;
3: begin
clrscr;
textcolor(yellow);
writeln('Sorry,error 3:You''ve input a wrong number.');
writeln('Please input the right number.');
writeln;
writeln('Please press Enter to continue...');
readln;
textcolor(white);
end;
4: begin
clrscr;
textcolor(yellow);
writeln('Sorry,error 4:Two new passwords are different.');
writeln('Please press Enter to return...');
readln;
2010年07月08日 11点07分