使用bitmasking的示例 [英] Example for working with bitmasking

查看:105
本文介绍了使用bitmasking的示例的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我不完全理解bitmasking操作并尝试使用Google,但不了解我找到的任何信息,所以请提供一个示例,详细说明如何使用Delphi进行位掩码操作:set,get,clear和toggle。



请使用3个复选框,如文件属性:System,Readonly和hidden



谢谢

I dont fully understand bitmasking operations and tried to Google but did not understand any of the information I found so please provide an example with full description on how to do bitmask operations with Delphi like: set, get, clear and toggle.

Please use 3 check boxes like file attributes: System, Readonly and hidden

Thanks

推荐答案

你真的需要彻底研究按位操作。每个软件开发人员都应该非常了解它们。起点可以是维基百科的相关页面[ ^ ]。
You really need to study thoroughly bitwise operations. Every software developer should know them very well. A starting point could be the related page at Wikipedia[^].


这篇关于使用bitmasking的示例的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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