|
Re: parsing a short into 2 pieces
|
Posted: Nov 1, 2003 6:23 PM
|
|
> I created a method that does the first part > by using int val = shtVal[2]; > val <<= 8;
Sorry to ask this again. I am little confuced with your problem. say you have an int array
int test[] ={10,20,30};
then your code is suppose to take these values and produce and output.
Please explain me what the output should look like in detail. What I understand now is if you have the first value 10 basically you want to separate it into 1 and 0 and the next 20 to 2 and 0. Am I right? Please correct me if I am wrong?
|
|