他以為他已經解決了這個問題,可是實際情況並非如此英文怎麼說?

He thought he had already solved the problem, but that was not the case.