Click here to Skip to main content
15,895,084 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Updating CPropertyPage Pin
Vaclav_19-Jun-12 7:48
Vaclav_19-Jun-12 7:48 
GeneralRe: Updating CPropertyPage Pin
David Crow19-Jun-12 8:03
David Crow19-Jun-12 8:03 
GeneralSOLVED : Updating CPropertyPage Pin
Vaclav_19-Jun-12 11:40
Vaclav_19-Jun-12 11:40 
SuggestionRe: SOLVED : Updating CPropertyPage Pin
David Crow20-Jun-12 2:38
David Crow20-Jun-12 2:38 
GeneralRe: SOLVED : Updating CPropertyPage Pin
Vaclav_20-Jun-12 4:08
Vaclav_20-Jun-12 4:08 
GeneralRe: SOLVED : Updating CPropertyPage Pin
David Crow20-Jun-12 4:12
David Crow20-Jun-12 4:12 
GeneralRe: SOLVED : Updating CPropertyPage Pin
Vaclav_20-Jun-12 8:36
Vaclav_20-Jun-12 8:36 
General3 Integer store with Bit Storage Pin
sheronici19-Jun-12 5:26
sheronici19-Jun-12 5:26 
Consider an 8-bit compiler say Turbo C, in which we have an integer of size, say 2-words i.e. 16-bits or 2 bytes. You need to store three integer values which are supposed to be as: 


Name | Range | Size Required 

===================================== 

Integer 1 | 0-3 | 2bits (00-11 in binary) 

Integer 2 | 0-5 | 3bits (000-101 in binary) 

Integer 3 | 0-7 | 3bits (000-111 in binary) 

In total, we need only 8bits to store all of these three values. Which means that a single variable of integer data type has enough memory to accommodate these values. 

The challenge is to store all of these three variables into a single instance of integer data type and retrieve it whenever required. 

In other words, you need to develop a program which can - at the maximum - use only two instances of integer data type, first one for the purpose of scanning values from the standard input device say keyboard and the second one to store the data entered by user in the form of three integer variables as discussed above and print them by retrieving it from the second instance in which the data was stored. 
Company Description Secpanel is a DIY security tool for cloud servers. 
Please see www.secpanel.com Requirements We are trying to solve the security problem for millions of servers on the internet. We are looking for people who are crazy enough to think they can solve the toughest of problems. And do. If you love to code and are sick of the protocol/HR/politics of big organizations, you should talk to us. 

Instead of a resume, please write a small piece of code for the following scenario: 

Consider an 8-bit compiler say Turbo C, in which we have an integer of size, say 2-words i.e. 16-bits or 2 bytes. You need to store three integer values which are supposed to be as: 


Name | Range | Size Required 

===================================== 

Integer 1 | 0-3 | 2bits (00-11 in binary) 

Integer 2 | 0-5 | 3bits (000-101 in binary) 

Integer 3 | 0-7 | 3bits (000-111 in binary) 

In total, we need only 8bits to store all of these three values. Which means that a single variable of integer data type has enough memory to accommodate these values. 

The challenge is to store all of these three variables into a single instance of integer data type and retrieve it whenever required. 

In other words, you need to develop a program which can - at the maximum - use only two instances of integer data type, first one for the purpose of scanning values from the standard input device say keyboard and the second one to store the data entered by user in the form of three integer variables as discussed above and print them by retrieving it from the second instance in which the data was stored. 

GeneralRe: 3 Integer store with Bit Storage PinPopular
Chris Losinger19-Jun-12 5:28
professionalChris Losinger19-Jun-12 5:28 
GeneralRe: 3 Integer store with Bit Storage Pin
Maximilien19-Jun-12 12:31
Maximilien19-Jun-12 12:31 
GeneralRe: 3 Integer store with Bit Storage Pin
Rajesh R Subramanian19-Jun-12 18:20
professionalRajesh R Subramanian19-Jun-12 18:20 
QuestionJPEG header construction Pin
Andrea Rabitti19-Jun-12 3:57
Andrea Rabitti19-Jun-12 3:57 
AnswerRe: JPEG header construction Pin
Chris Losinger19-Jun-12 4:05
professionalChris Losinger19-Jun-12 4:05 
GeneralRe: JPEG header construction Pin
Andrea Rabitti19-Jun-12 5:16
Andrea Rabitti19-Jun-12 5:16 
GeneralRe: JPEG header construction Pin
Chris Losinger19-Jun-12 5:18
professionalChris Losinger19-Jun-12 5:18 
GeneralRe: JPEG header construction Pin
Andrea Rabitti19-Jun-12 5:25
Andrea Rabitti19-Jun-12 5:25 
GeneralRe: JPEG header construction Pin
Chris Losinger19-Jun-12 5:30
professionalChris Losinger19-Jun-12 5:30 
GeneralRe: JPEG header construction Pin
Andrea Rabitti19-Jun-12 5:34
Andrea Rabitti19-Jun-12 5:34 
Questionbasic gaming in c++ Pin
Member 913892418-Jun-12 18:10
Member 913892418-Jun-12 18:10 
AnswerRe: basic gaming in c++ Pin
Richard MacCutchan18-Jun-12 21:14
mveRichard MacCutchan18-Jun-12 21:14 
AnswerRe: basic gaming in c++ Pin
Maximilien19-Jun-12 0:55
Maximilien19-Jun-12 0:55 
GeneralRe: basic gaming in c++ Pin
JackDingler19-Jun-12 10:05
JackDingler19-Jun-12 10:05 
AnswerRe: basic gaming in c++ Pin
Sivaraman Dhamodharan19-Jun-12 22:47
Sivaraman Dhamodharan19-Jun-12 22:47 
Questionhow to make a line in c++ Pin
Member 913892418-Jun-12 18:03
Member 913892418-Jun-12 18:03 
AnswerRe: how to make a line in c++ Pin
enhzflep18-Jun-12 18:50
enhzflep18-Jun-12 18:50 

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.