📄 bit_manipulation_undef_type.shtml
字号:
<HTML><HEAD> <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1"> <!-- add your name in the CONTENT field below --> <META NAME="Author" CONTENT="Ludovic CHARRIER"> <TITLE>C++ & MFC - Template class to manipulate bits of undefined type</TITLE></HEAD><!-- Set background properties --><body background="/fancyhome/back.gif" bgcolor="#FFFFFF"><!-- A word from our sponsors... --><table WIDTH="100%"><tr WIDTH="100%"><td align=center><!--#exec cgi="/cgi/ads.cgi"--><td></tr></table><CENTER><H3><FONT COLOR="#AOAO99"><!-- Article Title -->Template class to manipulate bits of undefined type</FONT></H3></CENTER><HR><!-- Author and contact details -->This article was contributed by <!-- Author Email --><A HREF="mailto:l.charrier@hol.fr"><!-- Author Name -->Ludovic CHARRIER</A>.<!-- Sample image - gif or jpg --><!-- Text / source code --><p>This template class is for manipulation bits of undefined type. It'susually for unsigned type but you can use it with signed type.<p>Most of the methods are inline for speed.<p>The method "print", in case of decimal value, formats only unsignedvalue. With signed type, the signe is lost (formally not lost but itwon't be printed).<p>I didn't try it with floating number, I think it will give unexpectedresult.<p>I made a zip file where the CBit class ( cpp & h ) is ready to compilein a project.<p>If you have any remarks or any improvment to do or if this class worksfine send me a mail
<p>On a suggestion of
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -