|
c++ 中friend是什么意思
DING |
|
完整注释汇编聊天软件,客户端代码,可聊天了,希望有人可以帮我完善。
楼主精神可加,可是要面对现实。tx有成千上万个比楼主技术强10倍、100倍的人在研发,你这是何苦。自己玩玩倒可以。 |
|
c++ 中friend是什么意思
卡住了卡住了卡住了 |
|
c++ 中friend是什么意思
整体第一句是什么意思? |
|
|
|
c++ 中friend是什么意思
这个函数是哪个函数啊? |
|
c++ 中friend是什么意思
可是operator>>(CArchive& ar, class_name* &pOb)又是什么意思呢? |
|
如何让电脑无法启动
最简单的方法,倒一桶康师傅红茶进去。 |
|
[讨论]关于深入浅出MFC中仿真获取App指针的一个问题。
我感觉你说的有道理,我就按你的思路理解了,谢谢 |
|
[讨论]关于UTF-8编码方式的一个深度问题。
那兄弟们认为我说的对吗? |
|
[讨论]关于UTF-8编码方式的一个深度问题。
看完supercolin大哥说的后,我终于明白了,再次感谢所有的人。我大致想总结下。这下终于把所有编码的来龙去脉搞清楚了。我想我的想法其实也许对大家有用: 1、首先,其实我的想法也是对的,就是对ASCII前0-127用一个字节表示,后面的用ucs2 表示,但是这样有一个问题就是正如supercolin大哥说的,没办法分辨里面的单个字节是属于ASCII还是属于UCS2分组字节中的某个字节,除非我们定死,即全部规定用2个或者4个字节来表示一个编码。即我们可以直接用USC2来编码包括ASCII之内的所有编码,都用2个字节表示,我们在记事本保存的时候编码选项中就有UNICODE这一项,如果这样保存一段汉字的话,大小会比使用UTF8编码小很多。但是如果保存英文字符的话,就成了2倍的大小了。 2、要解决我上面的问题,即采用一种变长的编码对UNICODE进行再编码,即发明了所谓的UTF8(UNICODE转换格式)编码,因为需要附加信息来表示一些比如编码长度等信息,以及编码标记,因此增加了原来UNICODE的编码长度。 3、有人常说UTF8解决了多语言混排,其实应该不是这样的,因为如果使用UNICODE也支持多语言混排。UTF8只是解决了变长字节编码的混排。 3、UTF8其实为了实现英文字符的单字节编码,增加了其他字符的编码长度,因此其实是方便了老外。对于我们汉字等语言来说,就是增加了编码长度。所以我们不能滥用UTF8编码,大家看看国内的一些门户网站的编码,都是用了GBK,而不是UTF8。 |
|
[讨论]关于UTF-8编码方式的一个深度问题。
可是我的问题没搞明白 |
|
[讨论]关于UTF-8编码方式的一个深度问题。
这个好像不可以吧,只能从当前字符编码的第一个字节能定位到下一个字符,其他字节是无法定位的,因为一个字符包含几字节的信息在第一个字节里存放,你想想看。 |
|
[讨论]关于UTF-8编码方式的一个深度问题。
谢谢supercolin回答,但是我是这样理解的,比如我们可以规定如果小于128的字节那么就当做ascii处理,然后其他的ucs2按2字节、2字节这样处理,就和处理我们的GBK编码一样,这样不也可以吗?这样也起码能编码6万多个字符。 |
操作理由
RANk
{{ user_info.golds == '' ? 0 : user_info.golds }}
雪币
{{ experience }}
课程经验
{{ score }}
学习收益
{{study_duration_fmt}}
学习时长
基本信息
荣誉称号:
{{ honorary_title }}
能力排名:
No.{{ rank_num }}
等 级:
LV{{ rank_lv-100 }}
活跃值:
在线值:
浏览人数:{{ visits }}
最近活跃:{{ last_active_time }}
注册时间:{{ user_info.create_date_jsonfmt }}
勋章
兑换勋章
证书
证书查询 >
能力值