乘法竖式数字谜:asp.net/c#中类似asp中left,left,mid的函数是什么呢?

来源:百度文库 编辑:杭州交通信息网 时间:2024/04/28 11:26:15
asp.net/c#中类似asp中left,left,mid的函数是什么呢?

在C#中字符串是一个对象,他是用一些方法来实现上述函数的功能的:
string mystr=new String();
mystr="wcwxws";
mystr.substr(int 开始位置, int 截取字符串长度);
例如:
mystr.substr(2,2)将返回"cw"