Problem with chessboard

Knight attacks everything that is on the board two rows above and one column left or right, two rows below and one column left or right, the right two columns and one row above or below or to the left two columns and one row above or below (in other words Knight attacks all figures are in the shape of the letter "L" in relation to his position). Position of the pieces on the chessboard is determined by letters A to H (x-axis) and numbered from 1 to 8 (y-axis), a chessboard is the first quadrant of the coordinate system. Write a program that will load the position of the knight and the position of some other figures, and to examine whether it is a knight of the attack or not? If it does not attack, it is necessary to print a figure of relative coordinates with respect to the horse.

Please help ! Sorry for my english...
Seems pretty self explanitory.

What do you need help with?
About all C++ code :S ! I am begineer . Professor gave me this task but I have no idea what to do...
this would be a good place to start http://cplusplus.com/doc/tutorial/

as a hint, a chessboard is easily represented by an 8x8 array, until you make some progress on your own though you won't get much help here
This can't be the first assignment of the class. You must have done easier assignments before this one.

We're not going to post a full solution -- this isn't a homework service.

If you want help, make an effort on your own first, then post your code and show us what you came up with, and what parts are giving you trouble. If there are problems in your code or if you don't know how to do something, we can help you with it. But you need to have it started first.
Topic archived. No new replies allowed.