Re: Non repeating list of names




I probably do not need a 4 dimension array as my discriminant is the part of line from the left to the first comma.

Like in

Mary,SomeStreet,SomeCity,SomeTelephone

I just need to check that "Mary" is not repeated in the same sublist


yynn@xxxxxxx wrote:
J.Williams wrote:

You have far too many variables acting as flags for a start. Some programming tips: use true and false instead of 1 and 0 for flags; write


Thanks a lot for your help!

Now I am trying to figure out a way to have it work if the lines in the input file contain comma-separated values like in

Name,Street,City,Telephone


Even in this case the only value that cannot be repeated within the same list is the Name (i.e. Street,City,Telephone can be repeated within the same file)

My first guess is I cannot use the Dictionary object as it is a bidimensional array (and the array i need in my example is 4 dimensional)

So I guess the program you suggested could do that if I use some function that reads the line, returns the Name portion of the line as the discriminant for repeated value and then writes the whole line to the correct sublist?


Thank you!
.



Relevant Pages

  • Re: Discriminant computation problem
    ... > a computation on a discriminant. ... > array in Integer'Size units. ... A packed array of boolean results in each boolean element ... The use of a generic package provides ...
    (comp.lang.ada)
  • Re: Variable length arrays proposal
    ... specifying the discriminant which is fixed for the object' lifetime; ... >> nor could you make an array of these with varying lengths. ... do either in Ada; you can have an array of a single constrained ... String for this, since Standard.String is type array of Character ...
    (comp.std.c)
  • Re: newbie: array passing problem
    ... Perhaps I didn't make myself very clear in my previous post, but you actually *can* do that in VB (pass a reference to a specific "column" of a 2D array to a subroutine in such a way that the subroutine only needs to use a single index). ... The structure itself of course only takes up about twenty or so bytes of memory. ... You can then point that SAFEARRAY structure at an uninitialised VB array of Singles as Single) and as far as VB is concerned the myColumn array will be a one dimension array of 500 variables of the type Single. ...
    (microsoft.public.vb.general.discussion)
  • Re: Array in javascript
    ... This is exactly the case with JavaScript array wich is a single ... dimension array when looking at it "from the top". ... the worst option available means that your endorsement may ...
    (comp.lang.javascript)
  • Re: how to pass a 1 dimension array pointer to a function taking a 2 dimensinoal array pointer?
    ... Instead of using an array of pointers to a vector, use a pointer to an array ... Sylvain Lafontaine, ing. ... want to copy my 1 dimension array to a 2 dimension array before calling F. ...
    (microsoft.public.vc.mfc)

Loading