C++ adding problem

Okay this is a little to tricky for me, Some how i have to use only the numbers 1-9 to add to 100... here are the rules, you can us the numbers that are side by side, but can't use other numbers that aren't.. such as 1+2 = 3 + 4 = 7 and you can't do 1+3 = 4 + 2

how ever you can do this 1 and 2 make 12 so 12 + 3 = 15 ( understand?) in code i have to cout every possible solution? I just don't know how to begin? any pointers?
Topic archived. No new replies allowed.