摘要:
1、定义一个静态成员方法,该方法用于提取文件名。比如,给定一个字符串“c:\program files\Maths\all.dat”,使用该方法即可获取文件名all.dat。自行设计程序验证上述方法正确性。 public static string getFilename(stringfile) { //提示:主体中使用string类的indexof方法和substring方法 }代码:using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace sr{ class ... 阅读全文
posted @ 2014-04-04 17:21
同学少年
阅读(392)
评论(0)
推荐(0)