Pages

Wednesday, July 7, 2010

The wind rose

How to treat a complex switch-case like, for example, for a relative placement (NORTH, WEST, SOUTH, EAST and compositions) :

// return the relative position of the specified point from (0, 0)
function String placement( int x, int y ) {

...

}

No comments:

Post a Comment