多久有什么问题? [英] What's wrong with long long?

查看:88
本文介绍了多久有什么问题?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

偶尔会长时间使用。我知道

这些标准有一些限制,比如不使用长长常数但是什么是大的

交易?为什么长期没用多久?


Mike

I use long longs occasionally. I know there are some limitations regarding
the standards such as not using long long constants but what''s the big
deal? Why is long long not used so much?

Mike

推荐答案

Michael B Allen写道:
Michael B Allen wrote:
我偶尔使用long longs。我知道关于
标准有一些限制,例如不使用长长常数但是什么是大的交易呢?为什么长时间不使用这么多?

迈克
I use long longs occasionally. I know there are some limitations regarding
the standards such as not using long long constants but what''s the big
deal? Why is long long not used so much?

Mike




我玩了很久但我不记得用了它在一个

计划中。我敢肯定,如果编程问题出现需要

大于+ -2或+40亿的整数,我会自然地使用很长的时间。



-

Joe Wright mailto:jo ******** @ comcast.net

所有事情都应尽可能简单,但并不简单。

---阿尔伯特爱因斯坦---



I''ve played with long long but I don''t remember using it in a
program. I''m sure that if programming problem arises that requires
integers larger than +-2 or +4 billion, I will use long long quite
naturally.
--
Joe Wright mailto:jo********@comcast.net
"Everything should be made as simple as possible, but not simpler."
--- Albert Einstein ---




" Michael B艾伦QUOT; < MB ***** @ ioplex.com>在消息中写道

news:pa ******************************** @ ioplex.com ...

"Michael B Allen" <mb*****@ioplex.com> wrote in message
news:pa********************************@ioplex.com ...
偶尔使用long longs。我知道关于
标准有一些限制,例如不使用长长常数但是什么是大的交易呢?为什么长时间不使用这么多?
I use long longs occasionally. I know there are some limitations regarding
the standards such as not using long long constants but what''s the big
deal? Why is long long not used so much?



有些人仍在使用拒绝很长时间的Microsoft编译器。

显然,MS正在使用诸如ULONG64之类的宏在他们的一些标题中。

我已经向他们的一些粉丝询问了这个的基本原理,并得到了总计

的沉默作为答案。很长一段时间似乎已经在最近一轮的MS路演中获得了完全的公民身份。

我有一个版本的编译器支持很长时间,但是

将在年底被淘汰,而不是那些。

你暗示没有一个Microsoft编译器支持很长的

常量?确实,MS编译器可能不会花费很长的时间长

长。

你是否愿意押注那些仍然声称那么久的人的可能性/>
长时间没有标准改变他们的想法从现在起6个月MS停止

支持拒绝它的编译器?


Some people are still using Microsoft compilers which reject long long.
Apparently, MS are using macros such as ULONG64 in some of their headers.
I''ve asked some of their fans about the rationale for this, and got total
silence as an answer. long long appears to have reached full citizenship in
the recent round of MS road shows.
I have a version of their compiler which does support long long, and yet is
to be obsoleted at the end of the year, along with those which don''t. Are
you implying that none of the Microsoft compilers support long long
constants? It''s true that MS compilers may not take long constants as long
long.
Would you care to bet on the likelihood of people who still claim that long
long isn''t standard changing their mind 6 months from now when MS stops
"supporting" compilers which reject it?




" Michael B Allen" < MB ***** @ ioplex.com>在消息中写道

"Michael B Allen" <mb*****@ioplex.com> wrote in message

为什么长时间不使用这么多?

Why is long long not used so much?



数字必须最终代表现实世界中的某些东西。你很少需要
需要超过40亿的数字,这大约相当于

世界的成年人数量。一个例外是内存大小,在大型系统上可能超过4GB

并且可能很快就会在台式机上出现,但在C中我们使用size_t来支持
内存量。


A number must ultimately represent something in the real world. You seldom
need a number above 4 billion, which is about the number of adults in the
world. An exception is memory size, which can exceed 4GB on large systems
and may soon be around that on desktop PCs, but in C we use size_t for
amounts of memory.


这篇关于多久有什么问题?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆