Ok I managed to sort the syntax error, didnt close my brackets of properly, but now I am getting an Error 20 Predicate not defined:
! Error 20 : Predicate Not Defined
! Goal : bubblesort(_37214,_37216) :- swap(_37214,_37232),!,bubblesort(_37232,_37216)
Not sure what the numbers mean or...
?Hey guys,
Im working on a family structure file tutorial and I am trying to sort a list using a bubble sort in descending order of salary. I have to firstly find all the person structures in the file whose salary are between 15000 & 35000 inclusive. Then sort them by salary and print them...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.