On Fri, 28 Oct 2005 13:46:02 -0700, bob wrote:
i don't see why there isn't an easy way to just make it print out the
line number it's on when i terminate it.
In the resulting executable program, there may or may not _be_ any line
numbers. The compiler doesn't necessarily translate each line of
source code into a discrete sequence of object code; compiler optimization
will even further modify the resulting program.
Now, yeah, if you built the program with debug information most debuggers
can relate positions in the code to the line of source that caused them,
but that's a compiler- and platform-specific matter.