>>>>> "JA" == Jay Austad <Austad> writes:

JA> So, how would I modify those two lines of code to allow me to do something
JA> like:
JA> echo 3 | ./bitshift

JA> I've never been able to figure out how to make a C program accept STDIN.  Of
JA> course, I haven't spent a whole lot of time looking either.

Umm, try looking up the scanf command.

-- 
Jon Schewe | http://mtu.net/~jpschewe
For I am convinced that neither death nor life, neither angels 
nor demons, neither the present nor the future, nor any 
powers, neither height nor depth, nor anything else in all 
creation, will be able to separate us from the love of God that 
is in Christ Jesus our Lord. - Romans 8:38-39