Click here to Skip to main content
15,927,745 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Difficult computer science problem Pin
Chris Losinger3-Oct-06 7:52
professionalChris Losinger3-Oct-06 7:52 
QuestionClient Server Application Pin
Pardi Banjarnahor3-Oct-06 4:06
Pardi Banjarnahor3-Oct-06 4:06 
AnswerRe: Client Server Application Pin
_AnsHUMAN_ 3-Oct-06 4:12
_AnsHUMAN_ 3-Oct-06 4:12 
AnswerRe: Client Server Application Pin
Rajesh R Subramanian3-Oct-06 4:16
professionalRajesh R Subramanian3-Oct-06 4:16 
AnswerRe: Client Server Application Pin
Hamid_RT3-Oct-06 9:18
Hamid_RT3-Oct-06 9:18 
QuestionHow do I pack to integer values in a double ? Pin
Astricks3-Oct-06 3:45
Astricks3-Oct-06 3:45 
AnswerRe: How do I pack to integer values in a double ? Pin
toxcct3-Oct-06 3:49
toxcct3-Oct-06 3:49 
GeneralRe: How do I pack to integer values in a double ? Pin
Astricks3-Oct-06 3:59
Astricks3-Oct-06 3:59 
Thank you for your reply sir, But I do not want an union Frown | :( The matter is,

You have a function like this. Imagine you cannot change it's params. It's built by someone and it's used in numerous instances.
<br />
void testDouble(double d)<br />
{<br />
cout<<d;<br />
}<br />

Now you say , testDouble(2143250); it prints 2143250. Now I want to send two integer values to this function for other reason. I have two numbres, 1000, 2000. these are ints so takes only 4 bytes.
<br />
double 00000000000000000000.....64<br />
now    0000000..32 | 0000.......32 is my idea.<br />
<br />

But how do I do that?

So that in the function, I can do like,

void testDouble(double d)
{
cout<<(HIGHER32)d;
cout<<(LOWER32)d;
}


get me now?
GeneralRe: How do I pack to integer values in a double ? Pin
toxcct3-Oct-06 4:03
toxcct3-Oct-06 4:03 
GeneralRe: How do I pack to integer values in a double ? Pin
Astricks3-Oct-06 4:19
Astricks3-Oct-06 4:19 
GeneralRe: How do I pack to integer values in a double ? Pin
Chris Losinger3-Oct-06 4:21
professionalChris Losinger3-Oct-06 4:21 
GeneralRe: How do I pack to integer values in a double ? Pin
Astricks3-Oct-06 4:45
Astricks3-Oct-06 4:45 
GeneralRe: How do I pack to integer values in a double ? Pin
Astricks3-Oct-06 4:53
Astricks3-Oct-06 4:53 
QuestionRe: How do I pack to integer values in a double ? Pin
David Crow3-Oct-06 4:40
David Crow3-Oct-06 4:40 
JokeRe: How do I pack to integer values in a double ? Pin
toxcct3-Oct-06 4:45
toxcct3-Oct-06 4:45 
GeneralRe: How do I pack to integer values in a double ? Pin
David Crow3-Oct-06 4:46
David Crow3-Oct-06 4:46 
GeneralRe: How do I pack to integer values in a double ? Pin
toxcct3-Oct-06 4:48
toxcct3-Oct-06 4:48 
AnswerRe: How do I pack to integer values in a double ? Pin
Astricks3-Oct-06 4:48
Astricks3-Oct-06 4:48 
QuestionReturn code to operating system Pin
jsumm3-Oct-06 2:59
jsumm3-Oct-06 2:59 
AnswerRe: Return code to operating system Pin
toxcct3-Oct-06 3:15
toxcct3-Oct-06 3:15 
GeneralRe: Return code to operating system Pin
jsumm3-Oct-06 3:25
jsumm3-Oct-06 3:25 
GeneralRe: Return code to operating system Pin
toxcct3-Oct-06 3:28
toxcct3-Oct-06 3:28 
GeneralRe: Return code to operating system Pin
jsumm3-Oct-06 3:37
jsumm3-Oct-06 3:37 
GeneralRe: Return code to operating system Pin
toxcct3-Oct-06 3:42
toxcct3-Oct-06 3:42 
AnswerRe: Return code to operating system Pin
David Crow3-Oct-06 5:09
David Crow3-Oct-06 5:09 

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.