Click here to Skip to main content
15,889,484 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Zombie command window after debugging VS2008 Pin
addick18-Feb-10 22:15
addick18-Feb-10 22:15 
GeneralRe: Zombie command window after debugging VS2008 Pin
hssaggu19-Feb-10 7:03
hssaggu19-Feb-10 7:03 
AnswerRe: Zombie command window after debugging VS2008 Pin
abedl18-Mar-10 4:43
abedl18-Mar-10 4:43 
AnswerRe: Zombie command window after debugging VS2008 Pin
Tomasz M. Sadowski30-Mar-10 8:12
Tomasz M. Sadowski30-Mar-10 8:12 
QuestionWhich would you use - a static or member function for your worker thread? Pin
Ben Aldhouse15-Feb-10 4:49
Ben Aldhouse15-Feb-10 4:49 
AnswerRe: Which would you use - a static or member function for your worker thread? Pin
Chris Losinger15-Feb-10 8:47
professionalChris Losinger15-Feb-10 8:47 
GeneralRe: Which would you use - a static or member function for your worker thread? Pin
Ben Aldhouse15-Feb-10 8:58
Ben Aldhouse15-Feb-10 8:58 
QuestionHelp plz Pin
zakria8115-Feb-10 4:49
zakria8115-Feb-10 4:49 
Hi everyone, can anybody help me by answering this question please:


write a program that implements a Phone Number Encrypter. This entity should be capable of reading a telephone number as a string in the form (555) 555-5555. Reading should include validating the format i.e. while (555) 555-5555 would be correct, 5555555555 would be incorrect as also (555) abc-3128, (3m5) 523+3289. It should then extract the area code, the first three digits of the phone number and the last four digits of the phone number. The seven digits of the phone number should then be concatenated into one string. The next step would be to convert the area code and the seven digit phone number strings into ints. Finally, you want to encrypt the number as follows:

• The area code should be converted to the binary notation using the complete number e.g. 555 would be 1000101011. Note that you would need 10 bits to accommodate all possible combinations
• The seven digit phone number should be converted into binary notation where all digits should first be added and the sum be converted into binary notation. In the given example the sum of the digits in 5555555 is 35 and hence the binary notation will be 100011. Six bits should suffice to hold the results

Finally the two encrypted binary representations should be concatenated. This would be a 16 digit binary number.

Implement a class to represent a Phone Number Encrypter. Following good object oriented programming practices, keep the data members private. Accessor functions should be declared to set and get the private data if needed, your overloaded input operator should take care of reading the phone number initially. You are free to use c-strings or objects of string class to store the ISBN as a string, although, the object-oriented string class is recommended. Write a test program to illustrate the use of your class.




I know it a long question but I really need your help...
AnswerRe: Help plz Pin
Avi Berger15-Feb-10 5:00
Avi Berger15-Feb-10 5:00 
QuestionRe: Help plz Pin
Maximilien15-Feb-10 5:00
Maximilien15-Feb-10 5:00 
AnswerRe: Help plz Pin
Michael Schubert15-Feb-10 5:51
Michael Schubert15-Feb-10 5:51 
QuestionProblem with DLL injection and API hooking Pin
vtorri15-Feb-10 4:44
professionalvtorri15-Feb-10 4:44 
QuestionID_FILE_SAVE lost Pin
CODEPC15-Feb-10 3:37
CODEPC15-Feb-10 3:37 
QuestionRe: ID_FILE_SAVE lost Pin
David Crow15-Feb-10 3:56
David Crow15-Feb-10 3:56 
AnswerRe: ID_FILE_SAVE lost Pin
CODEPC15-Feb-10 4:06
CODEPC15-Feb-10 4:06 
AnswerRe: ID_FILE_SAVE lost Pin
«_Superman_»15-Feb-10 4:02
professional«_Superman_»15-Feb-10 4:02 
GeneralRe: ID_FILE_SAVE lost [modified] Pin
CODEPC15-Feb-10 4:07
CODEPC15-Feb-10 4:07 
GeneralRe: ID_FILE_SAVE lost Pin
«_Superman_»15-Feb-10 17:27
professional«_Superman_»15-Feb-10 17:27 
Questioncompact database Pin
kk.tvm15-Feb-10 1:15
kk.tvm15-Feb-10 1:15 
AnswerRe: compact database Pin
CPallini15-Feb-10 1:38
mveCPallini15-Feb-10 1:38 
Questionconguring a special style for CMFCOutlookBarTabCtrl class Pin
A&Ms14-Feb-10 23:42
A&Ms14-Feb-10 23:42 
AnswerRe: conguring a special style for CMFCOutlookBarTabCtrl class Pin
A&Ms15-Feb-10 10:06
A&Ms15-Feb-10 10:06 
QuestionUnstable Thread runs! Pin
mostafa_pasha14-Feb-10 22:38
mostafa_pasha14-Feb-10 22:38 
AnswerRe: Unstable Thread runs! Pin
Rajesh R Subramanian14-Feb-10 22:43
professionalRajesh R Subramanian14-Feb-10 22:43 
GeneralRe: Unstable Thread runs! Pin
mostafa_pasha15-Feb-10 3:59
mostafa_pasha15-Feb-10 3:59 

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.