how to redirect the console output of prolog inclusive trace or write(…) to c++ Variable
问题 I hope someone can help me and thanks a lot to anybody who have an idea :) this question is related to another one for same project but thematically slightly different thats why seperated it . Project in shortform: Prolog is Solving an existing 2D puzzle which i wrot a logic for. visual studio(VS) cli visualize the puzzle/parts. And finaly the interface should be used to display the Solving process (via prolog trace or "write()")step by step in VS Goal : Get the output from Prolog code