User profile: dhayden

User info
User name:dhayden
Name:Dave Hayden
Location:Central New Jersey, USA
Bio:I've been programming since the mid-1970s and doing it professionally since 1985.
Statistical data
Occupation:Programmer
Skills:C
BASIC
C++
Pascal
ADA
Delphi
Assembly
LISP
History
Joined:
Number of posts:4339
Latest posts:

Multiplication with linked list hw
Your carry calculations are too complex. carry = value / 10; Use [code]--[/code] to decrement a var...

Multiplication with linked list hw
Are you required to use a linked list? It would be infinitely easier to use vectors instead.

Random number generator
Returning to your original code, you seem to have a bug: it allows duplicates: [code]if (i != i-1) ...

Delete an element in an array list
Just to be clear, you have [b]two bugs[/b]. The first bug is [code]if (id == id)[/code]. You tried ...

variable scope
[quote]So my first question is: on the second example, is variable a still a global variable?[/quote...