string & String
来源:互联网 发布:恒腾网络集团张继文 编辑:程序博客网 时间:2024/05/16 18:09
To referencethe string type in programs, we can have several choices:
1. including a “using System”
/**//* String */
Using System;
public class stringExample1
...{
static void Main()
...{
String vv = "I’m a string!";
}
}
Using System;
public class stringExample1
...{
static void Main()
...{
String vv = "I’m a string!";
}
}
2. No “using ” directive included
/**//* System.String */
// No "using" directive needed!
public class stringExample2
...{
static void Main()
...{
System.String vv = "I’m a string too!";
}
}
// No "using" directive needed!
public class stringExample2
...{
static void Main()
...{
System.String vv = "I’m a string too!";
}
}
3. No “using ” directive included
/**//* string */
// No "using" directive needed!
public class stringExample3
...{
static void Main()
...{
string vv = "I’m the simplest string!";
}
}
// No "using" directive needed!
public class stringExample3
...{
static void Main()
...{
string vv = "I’m the simplest string!";
}
}
- string
- String
- String
- string
- string
- String
- string
- String
- string
- string
- string
- string
- String
- String
- string
- string +
- String
- String
- 苏泊尔耗的JPEG解码器[三]
- 十万个为什么[By tina]
- 苏泊尔耗的JPEG解码器[四]
- What Exactly Is the Error?
- 苏泊尔耗的JPEG解码器[五(完)]
- string & String
- 网易一道笔试题!
- asp通过存储过程分页
- Using String class constructors
- 算法讨论,求效率的问题!
- 博客实名与一年前的预言
- 警惕现代文明病
- [C++] Use Endl Judiciously
- 幸福与富有