& = b的含义是什么.请举一个例子来解释? [英] what does a &= b meant for. please explain with an example?

查看:84
本文介绍了& = b的含义是什么.请举一个例子来解释?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

&= b的含义是什么.请使用示例进行说明吗?

what does a &= b meant for. please explain with an example?

推荐答案

这是缩短的连接格式.请参见& =运算符 [
This is a shortened format for concatenation. See &= Operator[^]


这意味着a = a&b,实际上是将两个字符串连接起来并分配给a.
This mean a = a & b, which is essentially concatenating the two strings and assigning them to a.


这是VB.Net的基础.和b为字符串类型,然后在代码上方可以使同时存在于字符串变量a和b中的两个String组成.这是:
的简写形式
It''s Basic of VB.Net.If your variables a and b are of String Type then above sentance of code concanitates the both String present in the String Variable a and b.This is the short form of :
a = a & b


即您的a和b的String值是一致的,结果将存储在变量a中.请参见以下示例:


i.e your String value of a and b are concanitate and result will be stored in Variable a.See the following Example :

Dim i As Integer 
i = i + 1


上面的代码可以编写如下:


The above code you can write as follows :

Dim i As Integer
i += 1


两种代码都给出相同的结果.希望对您有帮助. :)


Both code gives same Result.I hope it helps you. :)


这篇关于& = b的含义是什么.请举一个例子来解释?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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