Endf in C++

from #454
SG: 2 space indent