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. mkel84

    Replace

    Great, you were a great help. Thank you very much. [thumbsup2] [thumbsup2] [thumbsup2]
  2. mkel84

    Replace

    No from input (keyboard) but from variable Body that is filled with clause.
  3. mkel84

    Replace

    I can not understand what kind of given me pull out the function clause. You've never used this thing to show you the steps that the interpreter has made to reach the goal?
  4. mkel84

    Replace

    Unfortunately does not work. In the variables First and Last are values like "hi (foo)" and "hi (george)" but both are not strings, I do not know what they are.
  5. mkel84

    Replace

    In "write_result(String)" I pass a string, but First and Last no string. So I would have those two variables as strings. If you read the code and try it you maybe it is easier to understand my problem, otherwise try to ask what is not clear. Thank you very much for your help.
  6. mkel84

    Replace

    Excuse me how do I transform the variables into a string? I implemented this: write_result(String) :- replace("(", String, " è ", NewString1), replace(")", NewString1, ".", ResultString), atom_chars(Result, ResultString), write(Result). write_body(N,(First,Rest)) :- tab(N)...
  7. mkel84

    Replace

    Thank you, you were really nice
  8. mkel84

    Replace

    Looking on google I found this: replace( T1, S1, S2, T2 ) :- segment( T1, Pre, S1, Post ), append( S2, Post, S2_plus_Post ), append( Pre, S2_plus_Post, T2 ). segment( T, Pre, S, Post ) :- segment_1( S, T, Pre, Post ). segment_1( [], L, [], L ) :- !. segment_1( [H|T_]...
  9. mkel84

    Replace

    I have a string "hi (pippo)" and would like a feature that I replace the parenthesis with spaces and become "hi pippo
  10. mkel84

    Help

    No help??? :-(
  11. mkel84

    Help

    Hello everyone, I am new to the forum and then I'm sorry if there stupid questions. I found this expert system on the network: % Native - a simple shell for use with Prolog % knowledge bases. It includes expanations. :-op(900,xfy, :). main :- greeting, repeat, write('> '), read(X)...

Part and Inventory Search

Back
Top