Re: Top ten errors
From: Gene Wirchenko (gwirchenkoEXCEPT_at_CAPITALSwencomine.com)
Date: 11/19/03
- Next message: Jason: "organising classes c++"
- Previous message: jeffc: "Re: Top ten errors"
- In reply to: Gary Labowitz: "Top ten errors"
- Next in thread: jeffc: "Re: Top ten errors"
- Reply: jeffc: "Re: Top ten errors"
- Reply: ellie fant: "Re: Top ten errors"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Next message: Jason: "organising classes c++"
- Previous message: jeffc: "Re: Top ten errors"
- In reply to: Gary Labowitz: "Top ten errors"
- Next in thread: jeffc: "Re: Top ten errors"
- Reply: jeffc: "Re: Top ten errors"
- Reply: ellie fant: "Re: Top ten errors"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|