Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.c > #78521

Re: Ok how do I do this

From Keith Thompson <kst-u@mib.org>
Newsgroups comp.lang.c
Subject Re: Ok how do I do this
Date 2015-12-12 18:28 -0800
Organization None to speak of
Message-ID <lnr3irf5f5.fsf@kst-u.example.com> (permalink)
References <n4i624$det$1@dont-email.me> <lnbn9vgp9v.fsf@kst-u.example.com> <n4ik1u$sbv$1@dont-email.me>

Show all headers | View raw


"Bill Cunningham" <nospam@nspam.invalid> writes:
> "Keith Thompson" <kst-u@mib.org> wrote in message 
> news:lnbn9vgp9v.fsf@kst-u.example.com...
>
>> You say you know you could use the bitwise operators.  I don't see how.
>
>     If I could have a series of bits unset I could XOR  and have them set. I 
> must not know what I'm talking about.

You could XOR them *with what?

If an unsigned int is set to all-bits-zero, you can set it to whatever
value you like simply by assigning that value.  There's no need to use
XOR.

[...]

>     I think maybe I should stick to tutorials on algorithms and how to do 
> them in C. I have been looking at this a bit.
>
> struct node {
>     int key;
>     struct node *left;
>     struct node *right;
> };
>
> struct node *root=0;
>
> If I stick with these things there might be less confusion. Tutorial not or 
> only algorithms but algorithms in C.

Yeah, that's a binary tree.  It has nothing at all to do with what you
were talking about a moment ago.  Rhinoceros.

-- 
Keith Thompson (The_Other_Keith) kst-u@mib.org  <http://www.ghoti.net/~kst>
Working, but not speaking, for JetHead Development, Inc.
"We must do something.  This is something.  Therefore, we must do this."
    -- Antony Jay and Jonathan Lynn, "Yes Minister"

Back to comp.lang.c | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Ok how do I do this "Bill Cunningham" <nospam@nspam.invalid> - 2015-12-12 17:13 -0500
  Re: Ok how do I do this Lew Pitcher <lew.pitcher@digitalfreehold.ca> - 2015-12-12 17:27 -0500
    Re: Ok how do I do this "Bill Cunningham" <nospam@nspam.invalid> - 2015-12-12 17:30 -0500
  Re: Ok how do I do this Malcolm McLean <malcolm.mclean5@btinternet.com> - 2015-12-12 14:40 -0800
  Re: Ok how do I do this Jerry Stuckle <jstucklex@attglobal.net> - 2015-12-12 17:55 -0500
    Re: Ok how do I do this "Bill Cunningham" <nospam@nspam.invalid> - 2015-12-12 18:01 -0500
      Re: Ok how do I do this "Osmium" <r124c4u102@comcast.net> - 2015-12-12 17:20 -0600
  Re: Ok how do I do this Keith Thompson <kst-u@mib.org> - 2015-12-12 16:34 -0800
    Re: Ok how do I do this "Bill Cunningham" <nospam@nspam.invalid> - 2015-12-12 20:51 -0500
      Re: Ok how do I do this "Osmium" <r124c4u102@comcast.net> - 2015-12-12 20:00 -0600
        Re: Ok how do I do this "Osmium" <r124c4u102@comcast.net> - 2015-12-12 20:01 -0600
      Re: Ok how do I do this Keith Thompson <kst-u@mib.org> - 2015-12-12 18:06 -0800
        Re: Ok how do I do this "Bill Cunningham" <nospam@nspam.invalid> - 2015-12-12 21:21 -0500
          Re: Ok how do I do this Keith Thompson <kst-u@mib.org> - 2015-12-12 18:41 -0800
    Re: Ok how do I do this "Bill Cunningham" <nospam@nspam.invalid> - 2015-12-12 21:12 -0500
      Re: Ok how do I do this Keith Thompson <kst-u@mib.org> - 2015-12-12 18:28 -0800
  Re: Ok how do I do this Ian Collins <ian-news@hotmail.com> - 2015-12-13 13:56 +1300
  Re: Ok how do I do this Jorgen Grahn <grahn+nntp@snipabacken.se> - 2015-12-13 15:42 +0000
    Re: Ok how do I do this "Bill Cunningham" <nospam@nspam.invalid> - 2015-12-13 11:09 -0500
      Re: Ok how do I do this "Chris M. Thomasson" <nospam@nospam.nospam> - 2015-12-13 12:35 -0800
        Re: Ok how do I do this "Bill Cunningham" <nospam@nspam.invalid> - 2015-12-14 12:59 -0500
    Re: Ok how do I do this asetofsymbols@gmail.com - 2015-12-13 10:26 -0800

csiph-web