AND-ing shorts in c++
<p>How would i write a piece of code that ANDs the first byte of a short, but not the second part?</p>

<p>Eaxmple:
I have a short called inputShort, and I want this short to delete all values in the second byte. So I want to AND this with a logic operator.</p>

<p>Well, I tried, and I failed. so can someone give me an example how to do this ?</p>

<p>My goal is to keep the left part of the short, and empty out the right part of the short.</p>
