(not the whole code)
(in the 2nd if statement, i get an Unknown identifier error. how do i make that if statement take me to the name_pref procedure?)
Thanks,
Dubbemiah
Code:
program myst;
uses crt;
yn1 : char; <---variable for yes or no
(*------------------------*)
procedure enter_name;
begin
writeln ('Do you like this name?');
yn1 := GetKey;
readln (yn1)
If yn1 = #78 then enter_name;
if yn1 = #89 then name_pref;
end;
procedure name_pref;
begin
clrscr;
end;
end.
Thanks,
Dubbemiah