Login or Sign up Help | Site Map
Connecting Tech Pros Worldwide

C C++

Question posted by: Mallik * G (Guest) on July 4th, 2008 03:35 AM
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....
Would you like to answer this question?
Sign up for a free account, or Login (if you're already a member).
Jim Langston's Avatar
Jim Langston
Guest
n/a Posts
July 4th, 2008
04:05 AM
#2

Re: C C++
"Mallik * G" <gadde.mallik@gmail.comwrote in message
news:7e4a882c-6f46-46eb-aa54-903842fa1b4d@p39g2000prm.googlegroups.com...
Quote:
Originally Posted by
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?



Sam's Avatar
Sam
Guest
n/a Posts
July 4th, 2008
04:05 AM
#3

Re: C C++
Mallik * G writes:
Quote:
Originally Posted by
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....


Thank you for sharing with us a few minutes of your life. Now, was there a
question buried in your report, somewhere, that you were planning to ask?



-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iEYEABECAAYFAkhtn6wACgkQx9p3GYHlUOJCWACfX/8BkQT+kxDfGHbrH40rqCvC
My8An1EMBtbn3sYE3pkmMc00U2tccOrD
=mfou
-----END PGP SIGNATURE-----


=?UTF-8?B?RXJpayBXaWtzdHLDtm0=?='s Avatar
=?UTF-8?B?RXJpayBXaWtzdHLDtm0=?=
Guest
n/a Posts
July 4th, 2008
03:45 PM
#4

Re: C C++
On 2008-07-04 05:25, Mallik * G wrote:
Quote:
Originally Posted by
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

pauldepstein@att.net's Avatar
pauldepstein@att.net
Guest
n/a Posts
July 9th, 2008
01:25 AM
#5

Re: C C++
On Jul 4, 11:43*pm, Erik Wikström <Erik-wikst...@telia.comwrote:
Quote:
Originally Posted by
On 2008-07-04 05:25, Mallik * G wrote:
>
Quote:
Originally Posted by
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


 
Not the answer you were looking for? Post your question . . .
182,081 Experts ready to help you find a solution.
Sign up for a free account, or Login (if you're already a member).

  • Didn't find the answer you were looking for?
    Post Your Question
  • Top Community Contributors