The man whom I thought was my friend cheated me .
The man (who) I thought was my friend cheated me .
whom改为who,who在从句中当主语.