John,having lost the bet,had to pay for the dinner.
having lost the bet完成时的分词短语作原因状语
约翰输掉打赌后,不得不为那顿饭付账.