V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
V2EX  ›  thinkIn  ›  全部回复第 5 页 / 共 5 页
回复总数  98
1  2  3  4  5  
@nashge 嗯,是的呢。主要就是想弄清楚第二种方法。
看来还是要 google 啊。

In comparison operations, positive infinity is larger than all values except itself and NaN, and negative infinity is smaller than all values except itself and NaN. NaN is unordered: it is not equal to, greater than, or less than anything, including itself. x == x is false if the value of x is NaN. You can use this to test whether a value is NaN or not, but the recommended way to test for NaN is with the isnan function (see Floating Point Classes). In addition, <, >, <=, and >= will raise an exception when applied to NaNs.

-----https://www.gnu.org/software/libc/manual/html_node/Infinity-and-NaN.html#Infinity-and-NaN
K&R 中并未指定 char 是否有符号。只保证可打印字符为正值。
2015 年 11 月 11 日
回复了 megabits 创建的主题 分享创造 PomoNow 简洁有趣的番茄钟和 TodoList 新鲜上架
来一发, kandade @ 163.com
2015 年 11 月 3 日
回复了 shinko 创建的主题 App Store apple store 里面购买的应用退款之后就无法再次购买了?
买兑换卡,在兑给自己。
2015 年 10 月 13 日
回复了 thinkIn 创建的主题 C 在看 Linux 中 vsprintf() 源码时,发现似乎程序块也可以有值的?
找到资料了
http://stackoverflow.com/questions/7117427/c-block-becomes-expression-int-a-1-int-b-2-ab-equals-3
有评论说 ” This is a GCC extension called Statement Expressions. It's not standard C.“

这不是标准 C 的语法。
2015 年 10 月 5 日
回复了 supman 创建的主题 问与答 cpp 判断数组的某一个位置 是不是空的 应该怎么写呢?
不是 null ,应是 nul
2015 年 6 月 21 日
回复了 ericls 创建的主题 问与答 Router 你们念什么?
路透
2015 年 6 月 20 日
回复了 shiltian 创建的主题 C 二重指针申请和释放空间的正确姿势(C/C++)
(float)malloc (int)malloc 什么鬼?
2015 年 6 月 19 日
回复了 thinkIn 创建的主题 C 关于 C 快排的问题,总有问题,求教
@617019296
好的快排算法,并不是单取某一特定值做flag,一般会随机取的
2015 年 6 月 19 日
回复了 thinkIn 创建的主题 C 关于 C 快排的问题,总有问题,求教
异或的方法并不会有性能上的优势,主要是懒的再定义一个变量。
2015 年 6 月 18 日
回复了 thinkIn 创建的主题 C 关于 C 快排的问题,总有问题,求教
原因找到了,v[left++]=v[right]-->v[left]=v[right]; v[right--]=v[left]--> v[right]=v[left];
虽然越界不会报错,但一定不要做这种事,很可能会覆盖掉malloc与free维护的链表节点头信息,这将会是致命错误。
2015 年 5 月 23 日
回复了 Gem 创建的主题 Visual Studio Code Visual studio code 自定义的字体如何设置生效?
禁用xassist
nt *collect(void)
{
int p[16]={0};
********
return p;
}

应该就是一楼说的问题,thanks
2015 年 4 月 3 日
回复了 markss 创建的主题 Apple 分享个蜂窝数据开关的 widget
同求啊,@markss @superman @soinman
邮箱 [email protected],非常感谢
1  2  3  4  5  
About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   995 Online   Highest 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 23ms · UTC 18:54 · PVG 02:54 · LAX 11:54 · JFK 14:54
♥ Do have faith in what you're doing.