PDA

View Full Version : simple programming question with Microsoft Visual C++



slim150
04-24-2005, 10:31 PM
When you have code that exceeds the 80 characters how can you make the complier know that the line isn't finished and the rest of it is on subsequent lines?

Xilo
04-25-2005, 01:51 AM
... The compiler knows when a line finishes by the ending ; on almost every statement except preprocessor codes (begin with #).

4play
04-25-2005, 10:34 AM
what 80 char limit are you talking about. you will can write a sinlge line of code over ten lines if you want just use a ; to tell the compiler its the end of a line.

Illuminati
04-25-2005, 10:37 AM
"What they said
- you can write
any command over
as many lines of
code as you want,
like this.

The compiler only
recognises the end
of a line when there's
a semi-colon at the end
of it";