You can remember the meaning of 屋顶 with this easy mnemonic:
This is my house (屋), so don't go against (顶) my will by putting up a roof!
Using mnemonics to remember the meaning of Chinese characters like can have an enormous impact on how long to learn Mandarin it takes.