I want to write a method with the function of recursion, can anybody tell me how can I do it by useing Java or C++?

amatteur (Hick)
I want to write a method with the function of recursion, can anybody tell me how can I do it by useing Java or C++(I prefer Java, but if you can tell both of them is the best), the recursive method is used for 8x8 matrix grid which can put 8 components into the grid with the conditions as they do not attack each other (do not cross each others paths). they move vertically, horizontally and diagonally. The program must provide the components positions of the example solution, if one exists. If more than one solution exists we want to know the number of possible solutions.
Thank you!
(#60290@0)
2001-5-4 -05:00

回到话题: I want to write a method with the function of recursion, can anybody tell me how can I do it by useing Java or C++?

回到论坛: HOME枫下论坛枫下论坛主坛工作学习IT技术讨论

URL:   
http://www.rolia.net/zh/post.php?f=0&p=60290