Click here to Skip to main content
15,891,136 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Bit concatenation in C++ Pin
Richard MacCutchan30-May-13 2:50
mveRichard MacCutchan30-May-13 2:50 
GeneralRe: Bit concatenation in C++ Pin
Chris Losinger30-May-13 3:16
professionalChris Losinger30-May-13 3:16 
GeneralRe: Bit concatenation in C++ Pin
Richard MacCutchan30-May-13 5:22
mveRichard MacCutchan30-May-13 5:22 
GeneralRe: Bit concatenation in C++ Pin
Chris Losinger30-May-13 5:36
professionalChris Losinger30-May-13 5:36 
GeneralRe: Bit concatenation in C++ Pin
Richard MacCutchan30-May-13 6:19
mveRichard MacCutchan30-May-13 6:19 
GeneralRe: Bit concatenation in C++ Pin
ThatsAlok29-May-13 21:42
ThatsAlok29-May-13 21:42 
GeneralRe: Bit concatenation in C++ Pin
Manoj739029-May-13 21:57
Manoj739029-May-13 21:57 
GeneralRe: Bit concatenation in C++ Pin
ThatsAlok29-May-13 22:25
ThatsAlok29-May-13 22:25 
if you looking for string value as i understand by double quote used by you, you can use sprintf or sprintf_s.

now if you want to store the binary value resulting from you operation (as you mentioned they are only 3 bit coming), you can use char datatype (1 byte) and store the decimal equivalent of it there, internally it store its binary equivalent only,

for say you got 101 which decimal equivalent is 5 and when you store same in char variable, it binary representation would be
00000100

"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
Never mind - my own stupidity is the source of every "problem" - Mixture


cheers,
Alok Gupta
VC Forum Q&A :- I/IV
Support CRY- Child Relief and You

GeneralRe: Bit concatenation in C++ Pin
Manoj739029-May-13 23:39
Manoj739029-May-13 23:39 
GeneralRe: Bit concatenation in C++ Pin
Richard MacCutchan30-May-13 2:53
mveRichard MacCutchan30-May-13 2:53 
GeneralRe: Bit concatenation in C++ Pin
Manoj739029-May-13 23:58
Manoj739029-May-13 23:58 
GeneralRe: Bit concatenation in C++ Pin
Chris Losinger30-May-13 2:10
professionalChris Losinger30-May-13 2:10 
QuestionCOURSE SCHEDULING PROGRAM IN C++ Pin
Er.Rishi Sharma29-May-13 6:12
professionalEr.Rishi Sharma29-May-13 6:12 
AnswerRe: COURSE SCHEDULING PROGRAM IN C++ Pin
Richard MacCutchan29-May-13 6:49
mveRichard MacCutchan29-May-13 6:49 
GeneralRe: COURSE SCHEDULING PROGRAM IN C++ Pin
Er.Rishi Sharma29-May-13 7:44
professionalEr.Rishi Sharma29-May-13 7:44 
QuestionRe: COURSE SCHEDULING PROGRAM IN C++ Pin
David Crow29-May-13 9:25
David Crow29-May-13 9:25 
GeneralRe: COURSE SCHEDULING PROGRAM IN C++ Pin
Richard MacCutchan29-May-13 11:51
mveRichard MacCutchan29-May-13 11:51 
AnswerRe: COURSE SCHEDULING PROGRAM IN C++ Pin
ThatsAlok29-May-13 21:44
ThatsAlok29-May-13 21:44 
AnswerRe: COURSE SCHEDULING PROGRAM IN C++ Pin
Alan Balkany30-May-13 9:40
Alan Balkany30-May-13 9:40 
Questionget objectSid in ADSI with c++ code Pin
venkatesh5286729-May-13 4:55
venkatesh5286729-May-13 4:55 
AnswerRe: get objectSid in ADSI with c++ code Pin
ThatsAlok29-May-13 21:45
ThatsAlok29-May-13 21:45 
GeneralRe: get objectSid in ADSI with c++ code Pin
venkatesh5286729-May-13 22:55
venkatesh5286729-May-13 22:55 
QuestionPrevent System from sleep mode Pin
Sachin k Rajput 29-May-13 2:01
Sachin k Rajput 29-May-13 2:01 
AnswerRe: Prevent System from sleep mode Pin
Jochen Arndt29-May-13 2:22
professionalJochen Arndt29-May-13 2:22 
GeneralRe: Prevent System from sleep mode Pin
Sachin k Rajput 29-May-13 2:36
Sachin k Rajput 29-May-13 2:36 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.