A problem in program
"赵阳" <[email protected]>
| Newsgroups | gmane.comp.gnu.prolog.general |
|---|---|
| Message-ID | <[email protected]> |
Hi, all:
Now I encounter a problem in programming. Consider the follow program.
q :-.......
solve_propagate(L,Line1,Line2),!,
write('propagate success!'),nl,
L = [first|_],
write('first = '),write(first),nl,
stato_img(CL,CLine1,CLine2,first),
......
the first call solve_propagate() has bound the L, Line1, Line2(they are all list). I want get the fisrt element of L (variable first) and use to in the next call stato_img(). But it does not work. The program stops at L = [first|_] and gives a warning "user directive failed".
I want to know what the problem is and how to solve it. Thank you!
Zhao, Yang
2006-10-23
_______________________________________________
Users-prolog mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/users-prolog