"Harry - I think I've just understood something! I've got to go to the library!"
The library is the best resource of information at Hogwarts. It contains books on just about every magical subject, and students come here either to study or research or do homework for class.