Get over it. It sucks, and I'm sorry but professors do this all the time. There isn't much you can. It really isn't a copyright violation on his part since it would probably fall under fair use. If the question was fair and you studied for the exam, you should have been able to answer it. This is no different than a professor telling the class what questions will be on the exam on a day when several students were missing from class. Those students missing, unless someone was kind enough to tell them, are at a disadvantage. You can complain all you want. I doubt anything will come of it. Suck it and move on.