Click here to Skip to main content
15,905,874 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionRe: Free Resource?? Pin
Hamid_RT4-Jul-07 22:26
Hamid_RT4-Jul-07 22:26 
AnswerRe: Free Resource?? Pin
thenewbee5-Jul-07 1:51
thenewbee5-Jul-07 1:51 
QuestionRe: Free Resource?? Pin
David Crow5-Jul-07 2:53
David Crow5-Jul-07 2:53 
AnswerRe: Free Resource?? Pin
thenewbee5-Jul-07 19:25
thenewbee5-Jul-07 19:25 
QuestionCreating table/report using data in Oracle database Pin
__yash__4-Jul-07 19:04
professional__yash__4-Jul-07 19:04 
QuestionSocket Pin
shakumar_224-Jul-07 18:57
shakumar_224-Jul-07 18:57 
AnswerRe: Socket [modified] Pin
Nuxser4-Jul-07 19:36
Nuxser4-Jul-07 19:36 
Questionextracting the decimal places ..... ????? Pin
Zealous_Me4-Jul-07 13:20
Zealous_Me4-Jul-07 13:20 
hey pals, i was trying to extract the decimal places out of a "long double" type variable and then store them in an "integer" type variable.
First I stored the long double value in a long integer type value then I subtracted the long integer value from the original long double value, thus, I got the decimal portion of the long double value and I stored tis decimal part into a separate variable.
Now, I under a while loop (which ran uptill the value in the variable holding the decimal part didn't became zero) I multiplied the decimal value holding variable by 10 and stored result in a temporary long double variable, I then copied this new value into an integer variable and subtracted the integer value from the new long double value that left me with one less digit after decimal as i was having initially. NOW until the value of the temporary long double variable doesn't becomes zero this loop runs but this loop is running more number of times as desired. After the value ends in the temporary long double variable, this variable takes up a value = 2.55351e-15 and keeps on running.

How to avoid this ? ? ??????????????????????????????????

AnswerRe: extracting the decimal places ..... ????? Pin
David Crow5-Jul-07 2:59
David Crow5-Jul-07 2:59 
AnswerRe: extracting the decimal places ..... ????? Pin
Mark Salsbery5-Jul-07 8:48
Mark Salsbery5-Jul-07 8:48 
GeneralRe: extracting the decimal places ..... ????? Pin
G Haranadh9-Jul-07 21:23
G Haranadh9-Jul-07 21:23 
QuestionAccessing private members of a base Class Pin
ForNow4-Jul-07 12:00
ForNow4-Jul-07 12:00 
AnswerRe: Accessing private members of a base Class Pin
Christian Graus4-Jul-07 12:10
protectorChristian Graus4-Jul-07 12:10 
GeneralRe: Accessing private members of a base Class Pin
ForNow4-Jul-07 12:16
ForNow4-Jul-07 12:16 
AnswerRe: Accessing private members of a base Class Pin
Rajkumar R4-Jul-07 18:32
Rajkumar R4-Jul-07 18:32 
GeneralRe: Accessing private members of a base Class [modified] Pin
G Haranadh4-Jul-07 21:22
G Haranadh4-Jul-07 21:22 
GeneralRe: Accessing private members of a base Class Pin
David Crow5-Jul-07 3:01
David Crow5-Jul-07 3:01 
AnswerRe: Accessing private members of a base Class Pin
Rajkumar R8-Jul-07 23:19
Rajkumar R8-Jul-07 23:19 
GeneralRe: Accessing private members of a base Class Pin
ForNow5-Jul-07 6:42
ForNow5-Jul-07 6:42 
AnswerRe: Accessing private members of a base Class Pin
Joe Woodbury5-Jul-07 10:14
professionalJoe Woodbury5-Jul-07 10:14 
GeneralRe: Accessing private members of a base Class Pin
ForNow5-Jul-07 11:30
ForNow5-Jul-07 11:30 
GeneralRe: Accessing private members of a base Class Pin
Joe Woodbury5-Jul-07 12:00
professionalJoe Woodbury5-Jul-07 12:00 
GeneralRe: Accessing private members of a base Class Pin
ForNow5-Jul-07 13:22
ForNow5-Jul-07 13:22 
GeneralRe: Accessing private members of a base Class Pin
Joe Woodbury5-Jul-07 13:31
professionalJoe Woodbury5-Jul-07 13:31 
GeneralRe: Accessing private members of a base Class Pin
ForNow5-Jul-07 16:14
ForNow5-Jul-07 16:14 

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.