Реферат: Базы и банки знаний
dbread(kniga(Name,List,Izd,God)),nl,
write(" ",Name),nl,
writelist(List),nl,
write(" ",God," ",Izd),nl,!,
write("Enter Izd "),
readln(Izd1),
dbretract(kniga(Name,_,_,_)),nl,
dbassert(kniga(Name,List,Izd1,God)),
write(Name,"has been modified in database."),nl,!,
write("Press space bar."),
readchar(_),!.
/*если запись не существует*/
proc(4):-
write("Can't find that book in the database."),nl,
closefile(datafile),
closefile(indexfile),nl,!,
write("Press space bar."),
readchar(_),!.
/*изменение года выпуска*/
/*если запись сущесвует*/
proc(5):-
nl,write("Запрос: "),nl,
write(" Название книги: "),
readln(Name),
dbread(kniga(Name,List,Izd,God)),nl,
write(" ",Name),nl,
writelist(List),nl,
write(" ",God," ",Izd),nl,!,
write("Enter God "),