¡@

Home 

java Programming Glossary: curpos

Find all combinations of a given set of numbers

http://stackoverflow.com/questions/1991361/find-all-combinations-of-a-given-set-of-numbers

stack NULL int combinationLength 1 int valuesNumber 1 int curPos 0 fprintf stderr s Length of a combination if scanf d combinationLength.. for If we reached the last digit symbol... if stack curPos valuesNumber ...get back to the previous position if we finished.. back to the previous position if we finished exit if curPos 1 break Repeat this check continue buffer curPos values..