| | |
2's complement of BYTE array in c++ or vc++
Please support our C++ advertiser: Intel Parallel Studio Home
![]() |
•
•
Join Date: Apr 2007
Posts: 17
Reputation:
Solved Threads: 0
Hi,
I want to calculate 2's complement [ Negate all bits + 1] of BYTE array in c++ or VC++
firstly i am adding all elements of BYTE array and assigning it to integer variable now i want to calculate 2's complement of it. How can i do this plz help...
Does anyone know how to convert BYTE to binary format?
Thanks
Mukesh
I want to calculate 2's complement [ Negate all bits + 1] of BYTE array in c++ or VC++
firstly i am adding all elements of BYTE array and assigning it to integer variable now i want to calculate 2's complement of it. How can i do this plz help...
Does anyone know how to convert BYTE to binary format?
Thanks
Mukesh
Last edited by Ancient Dragon; Apr 18th, 2007 at 6:30 am.
Don't PM me with questions -- you might get a nasty PM in response. If you have a question then post it in one of the forums.
•
•
Join Date: Apr 2007
Posts: 17
Reputation:
Solved Threads: 0
Thanks.
can we split the bits of byte data variable. what should i used for it... means which datatype to store the values
like A2 in hex as
162 in Dec
A2 in Binary
1010 0010
I want first 6 bit in one variable and last two in other. can i use shift operator? but how to use with bit ? plz help
Thanks again.
can we split the bits of byte data variable. what should i used for it... means which datatype to store the values
like A2 in hex as
162 in Dec
A2 in Binary
1010 0010
I want first 6 bit in one variable and last two in other. can i use shift operator? but how to use with bit ? plz help
Thanks again.
![]() |
Similar Threads
- Coverting a string to a byte array (Visual Basic 4 / 5 / 6)
- object stream and byte array conversion (Java)
- File parsing in 'C' (C)
Other Threads in the C++ Forum
- Previous Thread: problems in making loops
- Next Thread: questionaaire about tv watching habits
| Thread Tools | Search this Thread |
api array arrays based beginner binary bitmap c++ c/c++ calculator char class classes code compile compiler console conversion count delete deploy desktop directshow dll download dynamic dynamiccharacterarray encryption error file forms fstream function functions game getline givemetehcodez google graph gui homeworkhelp homeworkhelper iamthwee ifstream input int integer java lib linkedlist linker linux list loop looping loops map math matrix memory news node output parameter pointer problem program programming project proxy python read recursion recursive reference return rpg string strings struct temperature template templates test text text-file tree unix url variable vector video visual visualstudio win32 windows winsock word wordfrequency wxwidgets






