Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

To find neighbours

Name: Anonymous 2011-04-12 10:28

Lets suppose that we have an array which looks like this:


#(#(O O O O)
  #(O O X O)
  #(O O O O))


How would I go about to find the neighbours of 'X
without using loads of if-else ?

Name: Anonymous 2011-04-13 23:49

>>40
#ifndef UNNECESSARY
#define UNNECESSARY "TERRIBLE! UNNECESSARY!"
#endif

Name: Anonymous 2011-04-14 0:39

>>40-41
#ifdef UNNECESSARY
#undef UNNECESSARY
#endif


You guys suck at Zen.

Name: Anonymous 2011-04-14 6:40

>>42
I didn't want to waste a wish on a blindfold or towel.

Name: Anonymous 2012-03-14 20:00

will this work?

Name: Anonymous 2012-03-14 20:41

>>40
Your C overlords have entered the thread.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List