Click here to Skip to main content
15,900,589 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: h_addr_list of gethostbyname returns negative values for google.com or other servers like example.com Pin
David Crow17-Feb-10 7:14
David Crow17-Feb-10 7:14 
GeneralRe: h_addr_list of gethostbyname returns negative values for google.com or other servers like example.com Pin
Jayapal Chandran17-Feb-10 7:23
Jayapal Chandran17-Feb-10 7:23 
GeneralRe: h_addr_list of gethostbyname returns negative values for google.com or other servers like example.com Pin
Jayapal Chandran18-Feb-10 8:39
Jayapal Chandran18-Feb-10 8:39 
GeneralRe: h_addr_list of gethostbyname returns negative values for google.com or other servers like example.com Pin
Richard MacCutchan16-Feb-10 8:07
mveRichard MacCutchan16-Feb-10 8:07 
GeneralRe: h_addr_list of gethostbyname returns negative values for google.com or other servers like example.com Pin
Jayapal Chandran16-Feb-10 11:03
Jayapal Chandran16-Feb-10 11:03 
GeneralOT: thanks for all the fish Pin
Richard MacCutchan16-Feb-10 13:00
mveRichard MacCutchan16-Feb-10 13:00 
GeneralRe: h_addr_list of gethostbyname returns negative values for google.com or other servers like example.com Pin
Jayapal Chandran16-Feb-10 7:20
Jayapal Chandran16-Feb-10 7:20 
GeneralRe: h_addr_list of gethostbyname returns negative values for google.com or other servers like example.com Pin
Richard MacCutchan16-Feb-10 8:12
mveRichard MacCutchan16-Feb-10 8:12 
QuestionHow to make Checkbocx control (IDC_CHECK) transparent in C++ Pin
Supriya Tonape15-Feb-10 8:52
Supriya Tonape15-Feb-10 8:52 
AnswerRe: This might help you Pin
Jayapal Chandran15-Feb-10 9:24
Jayapal Chandran15-Feb-10 9:24 
GeneralRe: This might help you Pin
Supriya Tonape15-Feb-10 22:49
Supriya Tonape15-Feb-10 22:49 
QuestionZombie command window after debugging VS2008 Pin
addick15-Feb-10 5:07
addick15-Feb-10 5:07 
AnswerRe: Zombie command window after debugging VS2008 Pin
Ted-XP15-Feb-10 6:45
Ted-XP15-Feb-10 6:45 
AnswerRe: Zombie command window after debugging VS2008 Pin
wuziq16-Feb-10 12:55
wuziq16-Feb-10 12:55 
AnswerRe: Zombie command window after debugging VS2008 Pin
hssaggu17-Feb-10 8:17
hssaggu17-Feb-10 8:17 
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 

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.