CBFalconer said:
Steph said:
I dont think I misunderstood, here are the course guidelines quite
clear about this.
"During this semester, all programs submitted for homework or extra
credit and the project must conform to the following programming
standards: [snip]
5. Use of function prototypes is prohibited. As such, all functions
must appear in reverse order of use, with the function main() being
the last function in the program.
[snip]
That's quite reasonable for one-file programs, and with
modifications for all programs. It is not banning prototypes - it
is forcing proper organization of prototypeless source.
A requirement that "Use of function prototypes is prohibited" is not
banning prototype?
The history has been lost by the unnecessary top-posting.
Top-posting has caused some confusion, but the real source of
confusion is the instructor's incorrectly stated requirements. It's
very likely that he didn't actually intend to ban all prototypes, but
that's exactly what he said.
If the instructor had stated what he actually meant (no prototypes in
your own code other than as part of a full function definition), it
would be a reasonable requirements for a small assignment that fits in
one source file. Forcing students to use a consistent orderering
(functions defined after anything they call, main at the end) is not
an unreasable style, and probably makes it easier for the instructor
to read the dozens of programs he's going to have to grade. (I'm
ignoring rule 9 regarding include files.)
Of course once the students start writing multi-file programs, proper
headers with prototypes should be mandatory.
The instructor has been quoted as saying that professional programmers
don't use prototypes; I can't think of a resaonable interpretation of
such a statement.