domains
A,B,C = symbol
N,P = integer
predicates
tower(integer,symbol,symbol,symbol,integer)
go
clauses
go :- clearwindow,
write("enter value of N (For Transfering
고대 터보 프롤로그는 커리큘럼에 포함되어 있으므로 사용하고 있습니다. 이 프로그램이 왜 작동하지 않습니까? domains
disease, indication = symbol
Patient = string
Fe,Ra,He,Ch,Vo,Ru = char
predicates
hypothesis(Patient,disease)
터보 프롤로그에서 새로 왔습니다. 중첩 목록을 추가 할 때 문제가 있습니다. mega_append([[1,3],[2,4,6],[0]],X) 출력이 X=[1,3,2,4,6,0] 나는 다음과 같은 코드가 사용되어야한다 : 나는 this- 목표와 같은 목표는 원하는이 domains
list=integer*
predicates
mega_appen
다음 프롤로그 술어를 이해하는 데 문제가 있습니다. 일부 문자를 연결하고 가능한 목록 (첫 번째 & 두 번째 목표)을 생성한다는 것을 이해할 수 있지만 어떻게 이해할 수 있습니까? 이 작업을 수행 ? 어떻게 실행합니까? domains
i=integer
l=i*
slist=string*
clist=char*
predicates
nondeter