Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. jonison

    another 'false' problem

    hi, everyone, I have another problem now, a bit confused now. Here is the code: sumY(X1,[[X,Y]|Rest],Sum0,Sum) :- X =:= X1, Sum is Y+Sum0, nl,write(Sum),write('##'),nl, sumY(X1,Rest,Sum,Sum). sumY(X1,[[X,Y]|Rest],Sum0,Sum) :- X =\= X1, Sum is Sum0, nl,write(Sum0),write(' @...
  2. jonison

    always false

    Many thanks for your reply, yes, this is really helpful. many many thanks.
  3. jonison

    always false

    Dear Everyone: I am a new starter,and make a programme: here are the code: matchsort([H|T],YList,XList,[N|M]) :- nth1(Index,YList,H), write('******'),nl,write(H),nl, nth1(Index,XList,N), write(N),nl,write('------'),nl, matchsort(T,YList,XList,M). matchsort([],[],[],[]). run with...
  4. jonison

    transfer to list

    hi, guys, I meet a problem, I made a programme to generate a 'list' ?1?234? ?1?232? ?2?343? ?4?342? ... I want to transfer this 'list' to a new list, as [1,234],[1,232],[2,343],[4,342]... how to realize this function? thank you for your help, I am looking forward to your reply. Many many many...

Part and Inventory Search

Back
Top