Do fish have feelings?
no, of course not. As far as the pain argument is concerned, I think it all comes down to what your definition of pain is. If you define pain as an emotional response, then no, fish technically don’t feel "pain." If you define pain as the response to damage being done or about to be done (as I do), then yes, fish do feel "pain."
Concerning the response to food/feeding time/memory:
There is something called the palovian (sp?) response. A scientist did a number of studies with a dog involving a bell and food (this is a greatly simplified explanation, mind you). Every time he fed the dog, he rang the bell just before. He found that the dog would anticipate food (salivation, increased production of stomach acid, etc) every time he rang the bell, even if he didn’t feed the dog. This is what’s happening when you feed your fish. Regardless of whether you feed your fish or not, every time you walk up to your tank and do whatever (open the hood, pick up the food container, etc) your fish will "presume" its getting food and act accordingly. This ties into fish memory as well (sorta). There is a great difference between short term memory, long term memory, and memory based on pain. If you walk by your tank once and tap the glass, your fish will scatter (most likely), but after a short period of time your fish will resume whatever activity they were previously doing: short term memory. The palovian response is, in a way, "long term memory." Your fish "learns" when feeding time is and responds to whatever stimuli triggers the response, your fish "remembers" what that stimulus is. If you hurt your fish or stress your fish with your fish net (just an example) then your fish will "remember" the net and avoid it. When it comes down to it all these types of memory are in actuality instinct. Your fish isn’t born with the knowledge that a net is painful/stressful, your fish isn’t born with the knowledge that your presence generally means food, but your fish is born with the instinct to associate certain things (you, your net, whatever) and respond accordingly in order to survive. Your fish are as smart as they need to be to survive, no more, and (generally) no less.