|
Cool, Mike! Smart guy!
1.
What is the range of the digit in the left of the point in normalized form of float, in base B? [1, B - 1]?
2.
Your conclusion is matching the answer from the book.
But what makes me confused is, suppose you have significant p1 and p2, and the correspounding exponent e1 and e2. Your counting answer is based on the theory that if p1 and p2 are different, no matter what correspounding values are e1 and e2 are, the result must be different.
My question is, is it possible that p1 and p2 are different, but also e1 and e2 are different, then p1 * e1 and p2 * e2 produce the same resulting value?
regards,
George
|
|
|
|
|
That's what Normalising is all about.
Bram van Kampen
|
|
|
|
|
Thanks Bram,
Could you provide answer to my question (1) and (2) please?
regards,
George
|
|
|
|
|
I subclassed a listview to try and get the HDN_TRACK notification from the header control, but the only notifications that seem to come are NM_RELEASEDCAPTURE and NM_CUSTOMDRAW. Is there any way to get the others?
|
|
|
|
|
Hey Friends
I have a screensaver file.
Now let's say this is abcd.scr
where as in screensaver dialog box it is displayed as 1234
any idea how do they extract 1234?
Regards
|
|
|
|
|
Have you tried looking at the HKCU\Control Panel\Desktop\scrnsave.exe value in the registry? Or, how about opening abcd.scr and looking at the string table resource (value 1)?
"Love people and use things, not love things and use people." - Unknown
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
Yeah Thanks
now i just need to find out how to read string table value of the .scr file
but now i have a way to move forward
thanks a lot
|
|
|
|
|
Helo I want to convert
u_short to long value.
so how to convert it. any library function is used or what?
Regards,
Amit
|
|
|
|
|
You just need to cast it to long;
u_short s = 0;
long l = (long)s;
|
|
|
|
|
I want to make an application (exe file) in visual studio. I want to use this application to copy files from one location to another. This application should accept two command line arguments, one destination path and the other source path. I think I should start from scratch to accomplish this. Can you throw a few pointers as to how to get started with this? are there any tutorial that help me get started with this?
Actually i want to copy a folder from one location to another. But more than the logic to copy, i want to know how to set up the exe to accept the command line arguments and process them.
I want to call the application from somewhere else like this:
<application name=""> <destination location="">.
Many thanks.
|
|
|
|
|
itsh11 wrote: Can you throw a few pointers as to how to get started with this?
Do you know how to open, read from, and write to a file?
itsh11 wrote: ...i want to know how to set up the exe to accept the command line arguments and process them.
int main( int argc, char *argv[] )
{
}
"Love people and use things, not love things and use people." - Unknown
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
I'm making a huge assignment and a part of it want me
to see the wasted space in a file
a friend of me said to me to use system("cls");
what is the meaning of system("cls"); ???
no gain without pain
|
|
|
|
|
This is a call to the OS to clear screen. If you typed in cls at the command prompt, the OS would attempt to clear the screen. Not sure what 'wasted space in a file' is though.
|
|
|
|
|
jeron1 wrote: Not sure what 'wasted space in a file' is though.
Also known as slack space.
"Love people and use things, not love things and use people." - Unknown
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
i mean with that the un used space in the all the records
no gain without pain
|
|
|
|
|
Well in any case I can't see what "cls" has to do with anything related to a file.
|
|
|
|
|
You can use of cls for clear page of course it was for DOS for example on the GWBasic you could use of clrcls (Im not sure excatly) what do you need excatly?
|
|
|
|
|
Asmo'a wrote: I'm making a huge assignment and a part of it want me
to see the wasted space in a file
As I understand your question, you want to "see" the amount of slack space a file uses. For example, if you have a file that is 8,200 bytes in size, it will actually consume 12,288 bytes on disk. That extra 4,088 bytes is wasted, or slack, space. This, of course, assumes a 4KB allocation unit.
"Love people and use things, not love things and use people." - Unknown
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
And why is that slack space there? Because in almost all the files I have seen, when seeing properties size and consumed place are different. Is it something standard? or can be avoided?
Greetings.
--------
M.D.V.
If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
Help me to understand what I'm saying, and I'll explain it better to you
“The First Rule of Program Optimization: Don't do it. The Second Rule of Program Optimization (for experts only!): Don't do it yet.” - Michael A. Jackson
|
|
|
|
|
Nelek wrote: And why is that slack space there?
See here.
"Love people and use things, not love things and use people." - Unknown
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
Thanks for the link
Greetings.
--------
M.D.V.
If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
Help me to understand what I'm saying, and I'll explain it better to you
“The First Rule of Program Optimization: Don't do it. The Second Rule of Program Optimization (for experts only!): Don't do it yet.” - Michael A. Jackson
|
|
|
|
|
Has anybody already written some? I am thinking variations on data returned from VirtualQuery could do the trick. Oh yeah, because IsBadReadPtr and IsBadWritePtr won't do anything on Windows Vista, according to MS documentation.
|
|
|
|
|
|
Yes, I know that. I was asking if anyone had already written replacements or knew of anything else.
|
|
|
|
|
#define IsBadReadPtr(x) ((x) == NULL)
#define IsBadWritePtr(x) ((x) == NULL) These functions are that bad. An immediate null pointer check is about as good as it's going to get.
DoEvents: Generating unexpected recursion since 1991
|
|
|
|