If/then without curly braces?

"If" statements is more than one line you need to have braces.

It has nothing to do with lines C/C++ does not care about lines (except with // comments). We do things on lines to make them easy to read.

Mark