V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX  ›  visionsmile  ›  全部回复第 13 页 / 共 24 页
回复总数  461
1 ... 9  10  11  12  13  14  15  16  17  18 ... 24  
2017-03-06 16:11:48 +08:00
回复了 bonfy 创建的主题 问与答 有入手 VR 眼镜或者 VR 设备的 V 友进来谈谈感受么?
@bonfy 想买总是买的到的啊,就是价钱。就我的体验来看 HTC VIVE 相比较而言体验是最好的(需要足够的空间 10m^2+,因为空间定位范围就 120°,如果范围太小随便一动就出范围会体验很差),个人觉得不适合普通玩家入手,除非只是玩玩儿而已不在乎这点钱。
2017-03-06 15:56:37 +08:00
回复了 bonfy 创建的主题 问与答 有入手 VR 眼镜或者 VR 设备的 V 友进来谈谈感受么?
@bonfy 暴风魔镜这样的盒子不是 VR ,本质和 Cardboard 那个纸盒没有区别。 HTC VIVE/Oculus Rift 才是。
2017-03-06 15:54:10 +08:00
回复了 bonfy 创建的主题 问与答 有入手 VR 眼镜或者 VR 设备的 V 友进来谈谈感受么?
VR 从业者一枚。我就这么说吧,我们公司几十号人,没一个自己买了 VR 眼镜的。
2017-02-27 23:59:09 +08:00
回复了 drlalll 创建的主题 C C 语言 数组 指针 函数问题,还请不吝赐教
就这个题而言,我觉得一般逻辑上应该是位数不足就补零吧...
2017-02-27 23:57:12 +08:00
回复了 drlalll 创建的主题 C C 语言 数组 指针 函数问题,还请不吝赐教
数组下标越界是 undefine behavior.
>An array subscript is out of range, even if an object is apparently accessible with the given subscript (as in the lvalue expression a[1][7] given the declaration int a[4][5])

因为是 UB ,你没办法预测会有什么结果。就算这么写结果正确(取决于你的环境)那也是不可移植的。
2017-02-25 18:38:50 +08:00
回复了 xuboying 创建的主题 C 求 C++11 书籍推荐
对了,如果你主要是想了解 STL 库那些...就读 TC++PL 4th 下册和 The C++ Standard Library:A Tutorial and Reference ,第二版也是 C++11 的。
2017-02-25 17:26:30 +08:00
回复了 xuboying 创建的主题 C 求 C++11 书籍推荐
@xuboying TC++PL 上册是讲语法,下册讲 STL 。
2017-02-25 17:25:33 +08:00
回复了 xuboying 创建的主题 C 求 C++11 书籍推荐
基础语法推荐 The C++ Programming Language 4th ,其实和 C++ Primer 5th 互有长短吧...有时间的话可以都看看......
我之前简单地写过两本书的区别:http://imzlp.me/posts/4367/
2017-02-19 10:45:29 +08:00
回复了 Newyorkcity 创建的主题 问与答 C 语言,问一个挺基础的关于作用域的问题
@Newyorkcity 我整理了一个 C/C++相关的文档列表,可以在这里下载: [doc.imzlp.me]( http://doc.imzlp.me/) ,我上面提到的 C++标准是 ISO/IEC 14882:2014 和 C 标准 ISO/IEC 9899:2011.
2017-02-18 14:59:19 +08:00
回复了 Newyorkcity 创建的主题 问与答 C 语言,问一个挺基础的关于作用域的问题
@coderluan 这个不叫未定义行为啊,应该叫这个 object 具有不确定的值(indeterminate value)
C 语言标准里面没有直接提到这种写法,但是也可以间接地推导出来:
>If an identifier designates two different entities in the same name space, the scopes might overlap. If so, the scope of one entity (the inner scope) will end strictly before the scope of the other entity (the outer scope). Within the inner scope, the identifier designates the entity declared in the inner scope; the entity declared in the outer scope is hidden (and not visible) within the inner scope.
以及:
>If an object that has automatic storage duration is not initialized explicitly, its value is indeterminate.

未定义行为是标准没有描述它会产生什么样的行为(行为不可预测),但是就这个问题而言,标准也是规定了它具有不确定的值(也就是描述了它会产生不确定值的行为)..所以就不是未定义行为....
2017-02-18 13:55:33 +08:00
回复了 Adminmaster 创建的主题 问与答 Ghost 比 hexo 难部署好多,老出问题,求推荐静态博客程序
使用 travis-ci+hexo+github pages ,一次折腾,之后就省心太多了,完全可以避免手动生成一遍...
我现在使用 hexo 是通过 dropbox 来同步 hexo 和源文件到我的 VPS 上,写个简单的脚本通过 plink 可以使文章在本地修改后一键从 VPS push 至 github ,然后用 travis-ci 来自动检测 github 上仓库更新来执行生成并 push 至 github pages 上,这样 hexo 的博客可以不用输入任何命令就能自动部署了。
2017-02-18 13:48:15 +08:00
回复了 Newyorkcity 创建的主题 问与答 C 语言,问一个挺基础的关于作用域的问题
@corvofeng
@Newyorkcity
@coderluan
@introom
@htfy96 题主这个是 Point of declaration 的问题,在 C++标准中是有描述的:

The point of declaration for a name is immediately after its complete declarator (Clause 8) and before its initializer (if any), except as noted below. [ Example:
unsigned char x = 12;
{ unsigned char x = x; }
Here the second x is initialized with its own (indeterminate) value. — end example ]
2017-02-17 18:16:47 +08:00
回复了 hailongs 创建的主题 C c 语言运算符问题
The operand of postfix -- is decremented analogously to the postfix ++ operator, except that the operand shall not be of type bool.
2017-02-17 18:14:14 +08:00
回复了 hailongs 创建的主题 C c 语言运算符问题
The value of a postfix ++ expression is the value of its operand. [ Note: the value obtained is a copy of the original value — end note ]
2017-02-16 09:25:52 +08:00
回复了 bboysoul 创建的主题 程序员 求一个可以下载各种编程语言文档的网站
日经贴啊...
http://devdocs.io/
2017-02-16 09:24:38 +08:00
回复了 bboysoul 创建的主题 程序员 求 Linux 下 C#和 C++ ide
Linux 下最好的 C++IDE 肯定是 clion 啊...
2017-02-15 23:32:16 +08:00
回复了 only0jac 创建的主题 程序员 [讨论]静态语言怎么部署最方便
samba
2017-02-09 09:13:04 +08:00
回复了 endosome 创建的主题 macOS 两三个人合作写一篇文章,用什么软件进行协作比较合适?
Dropbox Paper +1
2017-02-07 17:10:14 +08:00
回复了 nilai 创建的主题 Linux 求推荐一款普通文本编辑器
nano+1

话说为啥楼主就钦定了 sublime 要写代码呢...做个普通的编辑器也很方便啊。
1 ... 9  10  11  12  13  14  15  16  17  18 ... 24  
关于   ·   帮助文档   ·   自助推广系统   ·   博客   ·   API   ·   FAQ   ·   Solana   ·   819 人在线   最高记录 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 32ms · UTC 20:10 · PVG 04:10 · LAX 12:10 · JFK 15:10
♥ Do have faith in what you're doing.