评估报告的格式:asp.net/c#中类似asp中left,left,mid的函数是什么呢?

来源:百度文库 编辑:神马品牌网 时间:2024/04/30 11:04:11
asp.net/c#中类似asp中left,left,mid的函数是什么呢?

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