I am trying to write a flood fill algorithm using Allegro 5.0.7. Logically, my code should be working, but for some reason I don't think the set_pixel is being applied. The only thing I can think is the Allegro functions aren't doing what I think they are doing. My IDE is Visual C++ 2010. Can anyone help?
Assuming your algorithm is correct and you are seeing your cout lines...
Are you sure that you have called al_set_target_bitmap() on the appropriate bitmap?
Are you then drawing that bitmap to the back buffer?
I'd also use al_put_pixel, al_draw_pixel isn't really supposed to do much on a locked bitmap I think (at least the other al_draw_* functions aren't).
Thanks guys. The solution that worked was changing al_draw_pixel to al_put_pixel. I had the cout << in there just to try and see where my error was - I didn't plan on leaving it.
One thing I noticed was that all the coordinates kept being added to the stack over and over; thus none of them were applying the color to the bitmap or they'd have been removed. Good to know for future application - I'll use al_put_pixel instead. 
Thanks.:D