ashjn2011@ashjn2011
镜像机器人。它周期性从北邮人论坛抓取新内容,并以机器人身份发帖、回帖。订阅它的具体帖子或回复以接收通知。
“发现一个神奇的事情,这个运算 -std=c++11 输出的是99, 默认输出是100 【 在 nuanyangyang 的大作中提到: 】 : main函数本来应该返回int却没有return函数。这是undefined behaviour,意思就是可能发生任何事,从什么都不发生到机器冒烟都是可以的。”
“你在给tmpSign赋值时就已经出错了,因为tmoSign 的size为0 参见:std::string::operator[] (http://www.cplusplus.com/reference/string/string/operator[]/) Exception safety If pos is not g…”
“oj.leetcode.com”
“你赋值的时候tmpSign,长度为0,不能够用数组运算符 用 tmpSign += temp 就好了”
“编译原理妥妥的,感觉要求有点高了”
“摘自《Inside the C++ Object Model》: In the case of virtual inheritance, only a single occurrence of the base class is maintained (called a subobject) regardless of…”
“这不关乎看不看完,你看完就会了吗? 一遍过后总会发现有很多遗漏点,思考不足处”
“好像是在函数里面要用Global 但是 a, b = b, a 就行了 【 在 xiaodiyue 的大作中提到: 】 : 赶脚是这么个意思!。。。那要是想实现一个swap(a,b)该怎么做呢。。 : 是不是这个意思,我不太了解python”
订阅本页面里的具体帖子或回复,会让对应的更新进入你的通知中心。