Put numbers from 1 to 8 in the boxes, so that a number isn't near to the number before or after it(horizontally, vertically or in diagonal).
Ex.5 mustn't be next to 6 or 7 horizontally, vertically or in diagonal.
Use
writing software in C++ is like driving rivets into steel beam with a toothpick.
writing haskell makes your life easier:
reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.