相应的类库可在我的资源页面中找到,关于类成员的说明可通过对象浏览器查看函数说明
module module1
sub main()
console.writeline("十六进制数0x2f2e左移一位后的结果为0x{0}。", hex(_rol_16_(&h2f2e)))
console.writeline("十六进制数0x2f2e循环左移一位后的结果为0x{0}。", hex(_crol_16_(&h2f2e)))
console.writeline("十六进制数0x2f2e右移一位后的结果为0x{0}。", hex(_ror_16_(&h2f2e)))
console.writeline("十六进制数0x2f2e循环右移一位后的结果为0x{0}。", hex(_cror_16_(&h2f2e)))
console.writeline("十六进制数0xfe1a2d的二进制字符串为{0}。", getbinarystring(&hfe1a2d))
console.writeline("十六进制数0xfe1a2d的第8位设置为1后的结果为0x{0}。", hex(setbitstate(&hfe1a2d, 7, true)))
console.readkey()
end sub
end module
如对本文有疑问, 点击进行留言回复!!
使用Visual Studio2019创建C#项目(窗体应用程序、控制台应用程序、Web应用程序)
C#实现获取本地内网(局域网)和外网(公网)IP地址的方法分析
网友评论