位移在结构中 [英] Bit Shifting in structures

查看:67
本文介绍了位移在结构中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

任何人都可以对比特转移有所了解。结构?


我怀疑我是否使用了正确的关键词。

can anyone shed some light on "Bit Shifting" of structures?

I have a doubt whether i am using the right key word or not.

推荐答案

Sekhar写道:
任何人都可以对比特移位有所了解。结构?

我怀疑我是否使用了正确的关键词。
can anyone shed some light on "Bit Shifting" of structures?

I have a doubt whether i am using the right key word or not.




你的问题很模糊。请发布完整的,可编辑的代码

说明你最好的尝试做任何你想做的事情

做。


Luke



Your question is vague. Please post complete, compilable code
illustrating your best attempt to do whatever it is you''re trying to
do.

Luke




Luke Meyers写道:

Luke Meyers wrote:
Sekhar写道:
任何人都可以对比特转移有所了解。结构?

我怀疑我是否使用了正确的关键词。
can anyone shed some light on "Bit Shifting" of structures?

I have a doubt whether i am using the right key word or not.



你的问题很模糊。请发布完整的,可编辑的代码,说明你最好的尝试,做你想做的任何事情。

卢克



Your question is vague. Please post complete, compilable code
illustrating your best attempt to do whatever it is you''re trying to
do.

Luke




对不起使用错误的关键词

我一直在寻找结构包装概念



Sorry for the wrong key word used
I was looking for "Structure Packing" concepts


Sekhar写道:
Luke Meyers写道:
Luke Meyers wrote:
Sekhar写道:
Sekhar wrote:
任何人都可以对比特转移有所了解。结构?

我怀疑我是否使用了正确的关键词。
can anyone shed some light on "Bit Shifting" of structures?

I have a doubt whether i am using the right key word or not.



你的问题很模糊。请发布完整的,可编辑的代码
,说明您尝试做任何事情的最佳尝试。

Luke



Your question is vague. Please post complete, compilable code
illustrating your best attempt to do whatever it is you''re trying to
do.

Luke



对不起使用错误的关键词
我当时正在寻找结构包装概念


Sorry for the wrong key word used
I was looking for "Structure Packing" concepts



这些东西是实现定义的。如果某个实现需要对某些数据类型进行特定的对齐,那么struct成员将按照这些规则进行对齐。

-

Ian Collins。


Such things are implementation defined. If an implementation requires
particular alignments for certain data types, struct members will be
aligned to comply with those rules.
--
Ian Collins.


这篇关于位移在结构中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆