Endf in C++

from #454
only one newline needed.