Re: Help needed for a sorting code in the literature

frog2000_at_my-deja.com
Date: 12/30/04


Date: 30 Dec 2004 09:54:26 -0800

One can usuallly bet that it is your implementation that causes the
problem. You must be sure of all terms, conditions and definitions.

The array [0..n-1] or [1..n] is dependent on the specific language and
compiler. Pascal/Delphi can do "zero based arrays" as well as some
forms of BASIC where "option base(0)" would solve your problem. I am
almost sure there MUST be a way to do it in C++/C...
http://speech_for_blind.tripod.com



Relevant Pages

  • Re: Array initalization doubt.
    ... The compiler has to generate code to perform the ... In C89, initializers for automatic aggregates (arrays, structures, ... terminates the string literal, then memset the "default zero" bytes, ...
    (comp.lang.c)
  • Re: OO programming - illumination? - whoopsie
    ... > represented by a host of loosely related arrays. ... > compiler and the memory allocators. ... A pointer is usually a word. ... organs can be further modeled to include cells and so on and so forth. ...
    (comp.lang.java.programmer)
  • Re: D3/Linux compile question
    ... consider zero a valid array element while the Prime flavors do. ... 02 EQUATE ZERO TO ARRAY ... 07 CRT ARRAY ... Compiler catches line 6 and 13 as subscript out of range. ...
    (comp.databases.pick)
  • Re: OO programming - illumination? - whoopsie
    ... represented by a host of loosely related arrays. ... compiler and the memory allocators. ... As a matter of fact there is no such thing as a pointer. ... memory that just holds a terminator, which is 0 by convention. ...
    (comp.lang.java.programmer)
  • Re: D3/Linux compile question
    ... His secret was he started counting at zero. ... base frame not 1 past the base frame. ... I just give the compiler what it wants, ... As far as EQU VAR TO ARRAY(0), when we know the first index into ARRAY ...
    (comp.databases.pick)