Today I was writing a quick C program. I started off with the lines:
# use <stdlib.h>
# use <stdio.h>
and I didn't notice it until the compiler complained.
Abigail
(Darn, why isn't <PRE> allowed? That would make it a lot easier to show code.)
if (p) { p++ }/* Error 1 */
But worse still was the following (simplified) awk program that returned 0 for the number of counted words:
awk '{$c += NF} END{print $c}' file # Error 2
--
John.
1. Missing statement terminator. 2. Should be c instead of $c.
It's smarter <pre>
.