String decleration中的澄清 [英] Clarification in String decleration

查看:118
本文介绍了String decleration中的澄清的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





我看到一个声明为的代码,



Hi,

I saw a code which was declared as,

string qualificaiton = "'7'=5";
string start = "0";
string max = "1";
object[] results = null;





声明'7'= 5的含义是什么;



请帮忙。

提前致谢



What is the meaning of the declaration "'7'=5";

Please help.
Thanks in advance

推荐答案

它声明一个常量字符串,其内容为:

It declares a constant string whose content is:
'7'=5



即5个字符:一个引号,一个字符7,另一个引号,一个等号和一个字符5



引号字符在字符串中没有任何特殊之处,它们被视为普通字符和包含。


I.e. 5 characters: a quote, a character 7, another quote, an equals sign and a character 5

The quote characters do nothing special inside a string, they are counted as normal characters and included.


它只是一个字符串值。

无论用双引号声明它都表示一个简单的字符串值..

可以用于任何目的的价值,取决于他们使用的目的..
It is just a string value.
whatever declaring in double quotes it denotes a simple string value..
the value it can be used for any purpose,depends on the purpose they are using..


这篇关于String decleration中的澄清的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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