|
-
April 22nd, 2003, 09:32 AM
#1
Question about Int64.
Hi, everyone!
When reading source code of others, I find they often
use int64 to represent 8-bit integers. I have referenced
MSDN and find the comments there are not enough.
Can anyone tell me where can I find reference about this
topic? Another question, can this data type be used on
Non-windows platform, for example, Linux?
Thanks in advance,
George
-
April 22nd, 2003, 11:12 AM
#2
Like I have told you repeatedly, do a search through your
compiler's header files to see how something is #define'd or
typedef'ed.
-
April 22nd, 2003, 12:00 PM
#3
Paul, you are being a bit unfair here 
The thing is that _int64 is a built-in type for VC++. When you use gcc, it's typedefed according to the platform you use.
Get this small utility to do basic syntax highlighting in vBulletin forums (like Codeguru) easily.
Supports C++ and VB out of the box, but can be configured for other languages.
-
April 22nd, 2003, 01:17 PM
#4
In addition to the previous posts, I will just add that it is not a standard c++ type and is used by some compilers as a dialect extension. Other compilers use long long for this, and it is possible that in some dialects long long is a different size. Some compilers use both long long and _int64, sometimes interchangeably. Because it is not standard, it is not considered portable, but there has been talk of including some type with either of the names above in the next c++ standard revision...
*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/
"It's hard to believe in something you don't understand." -- the sidhi X-files episode
galathaea: prankster, fablist, magician, liar
-
April 22nd, 2003, 02:23 PM
#5
Originally posted by Yves M
Paul, you are being a bit unfair here 
The thing is that _int64 is a built-in type for VC++. When you use gcc, it's typedefed according to the platform you use.
I don't think that I am. This guy has a history of not doing any
work to find out the answers to questions. Some others have
exhibited some emotion at his incessant questions, but maybe I
should be more political about it.
Whatever, I'm not going to argue about it; my quarrel is not with
you, good sir knight.
--Paul
-
April 22nd, 2003, 09:39 PM
#6
Thanks, galathaea buddy!
George
Originally posted by galathaea
In addition to the previous posts, I will just add that it is not a standard c++ type and is used by some compilers as a dialect extension. Other compilers use long long for this, and it is possible that in some dialects long long is a different size. Some compilers use both long long and _int64, sometimes interchangeably. Because it is not standard, it is not considered portable, but there has been talk of including some type with either of the names above in the next c++ standard revision...
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|