Re: Top ten errors

From: Gene Wirchenko (gwirchenkoEXCEPT_at_CAPITALSwencomine.com)
Date: 11/19/03


Date: Wed, 19 Nov 2003 22:31:20 GMT

On Wed, 19 Nov 2003 10:36:56 -0500, "Gary Labowitz"
<glabowitz@comcast.net> wrote:

>I am trying to develop a top ten for errors that my students make. From
>memory (and while grading exams) I have come up with these.
>Any suggestions from your own experience?
>[They are in no particular order]
>1. Using = instead of == in boolean expression.
>2. Putting a ; after a comparison expression of a flow of control keyword.
>3. Using the same name for an argument parameter as a data member name.
>4. Using void main( ).
>5. Omitting ; after a class declaration.
>6. Using && instead of || to check limits of a value.
>7. Failing to provide a default constructor in a base class after having
>provided a parameterized constructor.
>
>More?

     Coding your own when there is already a library function to do
it.

Sincerely,

Gene Wirchenko



Relevant Pages

  • Top ten errors
    ... memory (and while grading exams) I have come up with these. ... Using = instead of == in boolean expression. ... Omitting; after a class declaration. ... provided a parameterized constructor. ...
    (alt.comp.lang.learn.c-cpp)
  • Re: Top ten errors
    ... >memory (and while grading exams) I have come up with these. ... after a comparison expression of a flow of control keyword. ... Omitting; after a class declaration. ... >provided a parameterized constructor. ...
    (alt.comp.lang.learn.c-cpp)
  • Re: Top ten errors
    ... > I am trying to develop a top ten for errors that my students make. ... > memory (and while grading exams) I have come up with these. ... > provided a parameterized constructor. ...
    (alt.comp.lang.learn.c-cpp)
  • Re: Top ten errors
    ... "Gary Labowitz" writes: ... > memory (and while grading exams) I have come up with these. ... > provided a parameterized constructor. ...
    (alt.comp.lang.learn.c-cpp)
  • Re: Top ten errors
    ... > I am trying to develop a top ten for errors that my students make. ... > memory (and while grading exams) I have come up with these. ... > provided a parameterized constructor. ...
    (alt.comp.lang.learn.c-cpp)