-
JHGJGHJGFJG
题目:取一个整数a从右端开始的4~7位。
程序分析:可以这样考虑:
(1)先使a右移4位。
(2)设置一个低4位全为1,其余全为0的数。可用~(~0<<4)
(3)将上面二者进行&运算。
2.程序源代码:(Topic: take an integer a from the right end of the four to seven began.
Program analysis: it can be to consider:
(1) to make a move to the right four.
(2) sets a low four total for the 1, all the rest for 0 of the number. Can be used to (~ 0 < < 4)
(3) will above the difference and operations.
2. The source code:)
- 2012-05-26 20:20:03下载
- 积分:1
-
动态创建数组类
说明: 动态创建数组模板,可以用该模板动态创建所需要的数组类(Dynamic Creation of Array Templates)
- 2020-06-24 03:00:02下载
- 积分:1
-
P2P_UDP
点到点通信代码,其中包括客户端程序和服务器端程序。(Code point-to-point communications, including client and server-side program.)
- 2007-10-30 16:26:26下载
- 积分:1
-
shiyan4
编程序实现如下功能:输入任意一个年份,按以下格式输出该年份全年的公历日历。(Programmed to achieve the following functions: Enter any one year, according to the following format output that year Gregorian calendar year.)
- 2013-06-23 12:07:01下载
- 积分:1
-
IOCPModel
这是一本关于IOCP模型原理及其功能介绍的文章。对于做大型服务器很有帮助(This is a book about IOCP model and the function introduction article. For large server help
)
- 2012-09-22 13:15:34下载
- 积分:1
-
Solution
在VS2012+WDK8.0上面编写的PCI的驱动程序,采用的是WDF最新型框架程序,成功运行。(In VS2012+WDK8.0 written above PCI drivers, using the latest WDF framework program run successfully.)
- 2014-01-05 14:35:59下载
- 积分:1
-
CSharp_SerialPort
C# 串口通信源码示例,老外写的,非常精美。(Serial Communication C# source code examples, written by foreigners, very fine.)
- 2012-09-26 10:25:26下载
- 积分:1
-
ym
说明: vb源码程序 windows api函数 转发 转发 转发
转发 转发 转发 转发 转发 转发 转发 转发 转发(vb source program windows api function Forwarding Forwarding Forwarding
Forward Forward Forward Forward Forward Forward Forward Forward Forwarding)
- 2016-04-26 11:48:37下载
- 积分:1
-
visualphone
采用VB进行可视化通信编程的一个应用实例(using VB Visual Communication Programming Application of a)
- 2006-08-06 23:35:40下载
- 积分:1
-
21-8
自定义例外类自定义错误处理类
算数异常,x不能除以0,这是自定义异常类!
按Enter键继续...(Custom exception class custom error handling class count abnormalities, x can not divide by 0, this is a custom exception class! Press the Enter key to continue ...)
- 2011-06-30 11:53:09下载
- 积分:1