Click here to Skip to main content
15,917,005 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionCheck Mouse on desktop Pin
varundua7-Oct-08 21:01
varundua7-Oct-08 21:01 
AnswerRe: Check Mouse on desktop Pin
SandipG 7-Oct-08 21:19
SandipG 7-Oct-08 21:19 
AnswerRe: Check Mouse on desktop Pin
Malli_S7-Oct-08 21:19
Malli_S7-Oct-08 21:19 
AnswerRe: Check Mouse on desktop Pin
BetulSahin7-Oct-08 22:07
BetulSahin7-Oct-08 22:07 
Questionpointer sized data of poi command Pin
George_George7-Oct-08 20:57
George_George7-Oct-08 20:57 
QuestionHow to download only images from the webpage Pin
Sandeep Saini SRE7-Oct-08 20:55
Sandeep Saini SRE7-Oct-08 20:55 
AnswerRe: How to download only images from the webpage Pin
Hamid_RT7-Oct-08 21:04
Hamid_RT7-Oct-08 21:04 
QuestionConvert Fortran Code Pin
Trupti Mehta7-Oct-08 20:43
Trupti Mehta7-Oct-08 20:43 
Hi,

I have a Fortran program which I have to convert into Java originally. I have converted the code completely but can't get appropriate resutls. The code contains lot of arithmetic calculations using double precision data type of Fortran.

I believe the data types of C++ and Java are based on same whereas of Fortran double precision is based on IEEE756. I want to know how to convert these double precision calculations into C++ normally. For example:

double precision d1 = 0.3648564D0;
d1**2  // ** indicates exponent
DSIN(d1)  // sin of double precision
DCOS(d1)   //  cos of double precision


The above are my main concerns which I find very difficult to convert. I use sin & cos for DSIN & DCOS. But Fortran 77 deals somthing differntly with double precision. How to convert/translate that into our normal C++ application is what I am looking for.

If you cna provide the same for Java that would be a plus for me, otherwise I will use the code accordingly of C++ in my Java application.

Please help me out. Am stuck up very badly.

Thanks

Terry

AnswerRe: Convert Fortran Code Pin
Saurabh.Garg7-Oct-08 21:12
Saurabh.Garg7-Oct-08 21:12 
QuestionRe: Convert Fortran Code Pin
CPallini7-Oct-08 23:03
mveCPallini7-Oct-08 23:03 
QuestionYielding Messages.... Pin
Peter Weyzen7-Oct-08 19:23
Peter Weyzen7-Oct-08 19:23 
AnswerRe: Yielding Messages.... Pin
Roger Stoltz7-Oct-08 22:24
Roger Stoltz7-Oct-08 22:24 
GeneralRe: Yielding Messages.... Pin
Peter Weyzen7-Oct-08 22:33
Peter Weyzen7-Oct-08 22:33 
GeneralRe: Yielding Messages.... Pin
Mark Salsbery8-Oct-08 5:55
Mark Salsbery8-Oct-08 5:55 
QuestionThread question Pin
monsieur_jj7-Oct-08 19:19
monsieur_jj7-Oct-08 19:19 
AnswerRe: Thread question Pin
Michael Dunn7-Oct-08 19:37
sitebuilderMichael Dunn7-Oct-08 19:37 
GeneralRe: Thread question Pin
monsieur_jj7-Oct-08 20:05
monsieur_jj7-Oct-08 20:05 
GeneralRe: Thread question Pin
Cedric Moonen7-Oct-08 20:12
Cedric Moonen7-Oct-08 20:12 
GeneralRe: Thread question Pin
monsieur_jj7-Oct-08 20:23
monsieur_jj7-Oct-08 20:23 
GeneralRe: Thread question Pin
Cedric Moonen7-Oct-08 20:29
Cedric Moonen7-Oct-08 20:29 
QuestionFunction calling in header file Pin
Davitor7-Oct-08 19:05
Davitor7-Oct-08 19:05 
AnswerRe: Function calling in header file Pin
ThatsAlok7-Oct-08 19:18
ThatsAlok7-Oct-08 19:18 
GeneralRe: Function calling in header file Pin
Davitor7-Oct-08 19:26
Davitor7-Oct-08 19:26 
GeneralRe: Function calling in header file Pin
ThatsAlok7-Oct-08 20:00
ThatsAlok7-Oct-08 20:00 
AnswerRe: Function calling in header file Pin
Cedric Moonen7-Oct-08 20:15
Cedric Moonen7-Oct-08 20:15 

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.