Which shall I use cross over connection and straight connection?

Hi,
I want to configure a network. I want to connect different types of devices. But I don’t know what kind of connection (crossover or straight) is used for different devices. Such as computer to hub, computer to switch, computer to router, computer to computer etc.
