对VB.NET上的变量声明感到困惑 [英] Confused with variable declaration on VB.NET

查看:87
本文介绍了对VB.NET上的变量声明感到困惑的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好!

我是VB.NET的新手。我实际上来自VB6并开始学习VB.NET。我看到了这行代码,我无法理解它是如何工作的,也不知道它是怎么回事。

I'm new to VB.NET. I actually came from VB6 and starting to learn VB.NET. I saw this line of code which I cannot understand how it works nor how it goes.


Private MAX_VALUE As Integer = (1 << 14)

推荐答案

Hi Micheal,

Hi Micheal,

Microsoft .Net Framework 1.1(及更高版本)引入了位移运算符(<<>>)。

Microsoft .Net Framework 1.1 (and above) introduced bit shift operators (<< and >>).

您可以通过以下帖子获得更多帮助

You can get more help from following posts

http: //visualbasic.about.com/od/usingvbnet/a/bitops01.htm

http://msdn.microsoft.com/en-us/library/y17w47af(VS.71).aspx

http:// msd n.microsoft.com/en-us/library/2d9yb87a(v = VS.71).aspx

我再次发现你没有标记你的即使你得到答案,问题仍然是答案。请将您的问题标记为答案,因为这可以帮助其他有类似问题的人。

Again I observed that you are not marking your questions as answer, even after you get an answer. Please mark your question as answer as this would help others who are having similar questions.

 


这篇关于对VB.NET上的变量声明感到困惑的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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