June 20, 2002
"Jonathan Andrew" <jon@ece.arizona.edu> wrote in message news:3D111140.2000009@ece.arizona.edu...
> Are < and > supposed to work on arrays yet? I really don't
> want to use strcmp()!

Yes, they should.


June 20, 2002
"Walter" <walter@digitalmars.com> escribió en el mensaje news:aer8jq$6qp$1@digitaldaemon.com...
>
> "Jonathan Andrew" <jon@ece.arizona.edu> wrote in message news:3D111140.2000009@ece.arizona.edu...
> > Are < and > supposed to work on arrays yet? I really don't
> > want to use strcmp()!
>
> Yes, they should.
>
So, if I say

if (charArr1 < charArr2 || charArr1 > charArr2) {  //arrays are different
   ...
} else {        //array are the same
   ...
}

it should work?


June 20, 2002
Sounds inefficient.

Sean

"Carlos" <carlos8294@msn.com> wrote in message news:aerm5r$jrl$1@digitaldaemon.com...
>
> "Walter" <walter@digitalmars.com> escribió en el mensaje news:aer8jq$6qp$1@digitaldaemon.com...
> >
> > "Jonathan Andrew" <jon@ece.arizona.edu> wrote in message news:3D111140.2000009@ece.arizona.edu...
> > > Are < and > supposed to work on arrays yet? I really don't
> > > want to use strcmp()!
> >
> > Yes, they should.
> >
> So, if I say
>
> if (charArr1 < charArr2 || charArr1 > charArr2) {  //arrays are different
>    ...
> } else {        //array are the same
>    ...
> }
>
> it should work?



June 20, 2002
"Sean L. Palmer" <seanpalmer@earthlink.net> escribió en el mensaje news:aermv1$kgr$1@digitaldaemon.com...
> Sounds inefficient.
>
> Sean
>

i know, but would it? (too late here to code something)


1 2
Next ›   Last »