阅读下列句子,体会黑体部分的用法
1.Having lost all my friends, I felt shy and lonely at my new school.
2.Having left something in the cloakroom, I went inside to get it.
3.This weekend, having thought about the situation for a while, I decided to ask Roy about the theft.
4.The girls stopped talking when the teacher came into the room.