免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
楼主: 无风之谷
打印 上一主题 下一主题

让我欢喜让我忧——我的C++之路 [复制链接]

论坛徽章:
2
青铜圣斗士
日期:2015-11-26 06:15:59数据库技术版块每日发帖之星
日期:2016-07-24 06:20:00
841 [报告]
发表于 2012-04-22 05:36 |只看该作者
回复 819# starwing83

正打算粉你来着。

回复 827# starwing83

结果你自粉了

论坛徽章:
2
程序设计版块每日发帖之星
日期:2015-06-17 22:20:00每日论坛发贴之星
日期:2015-06-17 22:20:00
842 [报告]
发表于 2012-04-22 07:22 |只看该作者
提示: 作者被禁止或删除 内容自动屏蔽

论坛徽章:
2
程序设计版块每日发帖之星
日期:2015-06-17 22:20:00每日论坛发贴之星
日期:2015-06-17 22:20:00
843 [报告]
发表于 2012-04-22 07:25 |只看该作者
提示: 作者被禁止或删除 内容自动屏蔽

论坛徽章:
0
844 [报告]
发表于 2012-04-22 09:47 |只看该作者
回复 161# 陈良乔


    这都行?

论坛徽章:
12
巳蛇
日期:2013-09-16 15:32:242015年辞旧岁徽章
日期:2015-03-03 16:54:152015年亚洲杯之约旦
日期:2015-02-11 14:38:37双鱼座
日期:2015-01-05 11:05:47戌狗
日期:2014-12-08 09:41:18戌狗
日期:2014-08-15 09:29:29双子座
日期:2014-08-05 09:17:17卯兔
日期:2014-06-08 15:32:18巳蛇
日期:2014-01-27 08:47:08白羊座
日期:2013-11-28 21:04:15巨蟹座
日期:2013-11-13 21:58:012015年亚洲杯之科威特
日期:2015-04-17 16:51:51
845 [报告]
发表于 2012-04-22 10:03 |只看该作者
starwing83 发表于 2012-04-21 23:17
回复 826# pmerofc


但问题是有不少人都不能意识到自己其实不懂某些问题。

我认为这样两种状态是没有问题的:
1.懂了,并且知道自己懂了
2.没懂,并且知道自己没懂
而LZ写的这种书,往往让人处于这样的状态:
3.没懂,但是认为自己懂了

论坛徽章:
5
狮子座
日期:2013-08-20 10:12:24午马
日期:2013-11-23 18:04:102015年辞旧岁徽章
日期:2015-03-03 16:54:152015亚冠之德黑兰石油
日期:2015-06-29 18:11:1115-16赛季CBA联赛之新疆
日期:2024-02-21 10:00:53
846 [报告]
发表于 2012-04-22 10:21 |只看该作者
回复 842# OwnWaterloo


    我以前就说了,比方要有用,要切中主题,现在你看到无用的比方罗~

论坛徽章:
2
程序设计版块每日发帖之星
日期:2015-06-17 22:20:00每日论坛发贴之星
日期:2015-06-17 22:20:00
847 [报告]
发表于 2012-04-22 10:23 |只看该作者
提示: 作者被禁止或删除 内容自动屏蔽

论坛徽章:
0
848 [报告]
发表于 2012-04-22 10:29 |只看该作者
关于string.h和memory.h
Bjane Stoustrup支持大家的更加标准化的观点
大家赢了,我输了,谢谢大家对我的帮助

On 4/21/2012 7:02 AM, Chen Liangqiao wrote:
> Dear Sir,
>
> I thought i find another little bug in the example code today.
> in the subject "Initializer lists" , in the middle of the code:
>
> { {"Martin", "Ritchards"} {1982, 2003, 2007} },
>
> the comma(,) is missing at the end of "Ritchards"} ".

Thanks

>
> by the way, i want to ask a question about string.h and memory.h.
> If i wan to use memset() in my program, which header file shoule I
> include? string.h or memory.h?

string.h

> Someone told me that I should include string.h, but, my question is:
> why should I include a header file which is irrelative to the memory
> operation?

because that's where it is in ISO C and C++

> Why not include the memory.h directly?

because that's not where memset() is supposed to be (however logical it
may seem to put it there)

> In my opinion, It is more readability than string.h, for the programmer.
>
>
>
> -----Original Message----- From: Bjarne Stroustrup
> Sent: Monday, April 16, 2012 12:51 AM
> To: Chen Liangqiao
> Subject: Re: a little bug in C++11 FAQ
>
> On 4/15/2012 10:34 AM, Chen Liangqiao wrote:
>> Dear Sir,
>>
>> I found a little bug in the C++11 FAQ when i reviewed it.
>>
>> in the subject "noexcept-- preventing exception propagation", i guess
>> the semicolon( in the end of code line
>>
>> void do_f(vector<T>& v) noexcept(noexcept(f(v.at(0)))); // can thr
>>
>> is unnecessary.
>
> Corrct. Thank you.
>
>>
>> by the way, i have moved the C++11 FAQ Chinese to a new place,
>> because the original site is unstabitily. the new URL is
>>
>> http://chenlq.net/cpp11-faq-chs
>>
>> would you please change the url in your English FAQ? Thank you!
>
> I have updated my source, but it will take maybe a week before my
> correction will go "live".
>
>>
>>
>> 陈良乔
>>
>> 了解我更多:
>> http://chenlq.net
>> 时刻关注我:
>> http://t.sina.com.cn/chenliangqiao
>

论坛徽章:
2
程序设计版块每日发帖之星
日期:2015-06-17 22:20:00每日论坛发贴之星
日期:2015-06-17 22:20:00
849 [报告]
发表于 2012-04-22 10:32 |只看该作者
提示: 作者被禁止或删除 内容自动屏蔽

论坛徽章:
2
青铜圣斗士
日期:2015-11-26 06:15:59数据库技术版块每日发帖之星
日期:2016-07-24 06:20:00
850 [报告]
发表于 2012-04-22 10:38 |只看该作者
本帖最后由 OwnWaterloo 于 2012-04-22 10:42 编辑
陈良乔 发表于 2012-04-22 10:29
关于string.h和memory.h
Bjane Stoustrup支持大家的更加标准化的观点
大家赢了,我输了,谢谢大家对我的帮助


显然不可能支持用memory.h。
只有对你,这个显然才不那么显然。
居然需要为这种事情去打扰BS老头子。



另外:
陈良乔 发表于 2012-04-22 10:29
> by the way, i want to ask a question about string.h and memory.h.
> If i wan to use memset() in my program, which header file shoule I
> include? string.h or memory.h?

string.h

> Someone told me that I should include string.h, but, my question is:
> why should I include a header file which is irrelative to the memory
> operation?

because that's where it is in ISO C and C++

> Why not include the memory.h directly?

because that's not where memset() is supposed to be (however logical it
may seem to put it there


BS的回答与我们的有何不同?因为他用英文?
为什么BS的话你就接受了?

那对那个等号,你是不是也该再去请教一个你信得过的权威


早说了,你这人是假谦虚。表明上恭敬,骨子里根本就唯我独尊。
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP