Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > C++ > C C++

Reply
Thread Tools

C C++

 
 
Mallik * G
Guest
Posts: n/a
 
      07-04-2008
While reading some source code, I saw a variable called "end" of type
"time". So I investigated what the type "time" meant and saw that time
was a typedef for "Real". So what does "Real" mean? "Real" is a
typedef for QL_REAL. So what does "QL_REAL" mean? QL_REAL is type
double via the line of code #define QL_REAL double....
 
Reply With Quote
 
 
 
 
Jim Langston
Guest
Posts: n/a
 
      07-04-2008
"Mallik * G" <> wrote in message
news:7e4a882c-6f46-46eb-aa54-...
> While reading some source code, I saw a variable called "end" of type
> "time". So I investigated what the type "time" meant and saw that time
> was a typedef for "Real". So what does "Real" mean? "Real" is a
> typedef for QL_REAL. So what does "QL_REAL" mean? QL_REAL is type
> double via the line of code #define QL_REAL double....


so what's your question? So the line

time end;
or however it was defined becomes
double end;
after all the preprocessore directives are finished. So what's the
question? Or is this an observation or a comment?


 
Reply With Quote
 
 
 
 
Erik Wikström
Guest
Posts: n/a
 
      07-04-2008
On 2008-07-04 05:25, Mallik * G wrote:
> While reading some source code, I saw a variable called "end" of type
> "time". So I investigated what the type "time" meant and saw that time
> was a typedef for "Real". So what does "Real" mean? "Real" is a
> typedef for QL_REAL. So what does "QL_REAL" mean? QL_REAL is type
> double via the line of code #define QL_REAL double....


Congratulations, you have discovered abstraction, a fundamental skill
when writing software.

--
Erik Wikström
 
Reply With Quote
 
Sleipnir
Guest
Posts: n/a
 
      07-05-2008
You're learning how to use QuanLib?
That's interesting... You're gonna work in finance?

Commando team use it with VBA... Maybe you'd have to imporve VBA first...
QuandLib has a DLL usable into Excel without knowing how C++ works and with
about the same performances...




"Mallik * G" <> a écrit dans le message de
news:7e4a882c-6f46-46eb-aa54-...
> While reading some source code, I saw a variable called "end" of type
> "time". So I investigated what the type "time" meant and saw that time
> was a typedef for "Real". So what does "Real" mean? "Real" is a
> typedef for QL_REAL. So what does "QL_REAL" mean? QL_REAL is type
> double via the line of code #define QL_REAL double....


 
Reply With Quote
 
pauldepstein@att.net
Guest
Posts: n/a
 
      07-09-2008
On Jul 4, 11:43*pm, Erik Wikström <Erik-wikst...@telia.com> wrote:
> On 2008-07-04 05:25, Mallik * G wrote:
>
> > While reading some source code, I saw a variable called "end" of type
> > "time". So I investigated what the type "time" meant and saw that time
> > was a typedef for "Real". So what does "Real" mean? "Real" is a
> > typedef forQL_REAL. So what does "QL_REAL" mean?QL_REALis type
> > double via the line of code #defineQL_REALdouble....

>
> Congratulations, you have discovered abstraction, a fundamental skill
> when writing software.
>

No, I don't think the OP has discovered abstraction. I wrote
_exactly_ the same paragraph in another posting, and the OP just copy-
pasted it. I don't know why the OP did this(??)
If the OP has discovered anything, it is the art of copying and
pasting text.

Paul Epstein

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off




Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57