I have two classes which I store in seperate files.
Class A has functions that use class B as a parameter.
Class B has functions that use class A as a parameter.

I can't seem to get them to compile. I've tried including them in each other, but this only puts the compiler into an infinite loop (until it complains about it and terminates). It's really frustrating. I'm sure there's an easy way to do it that I don't know about...

I'm relatively new to C++. I learned Java as my first language in college (they teach it because of its simplicity), and then C (which was a horribly painful transition, but I managed to get a 100 on both C programming assignments) near the end the class I just finished. I'm learning the differences between C and C++ on my own over the winter break. Other than stuff like this, my C to C++ transition has been pretty smooth.