您的位置:首页 > 职场人生

黑马程序员_原来这题可以这样写

2012-05-24 16:41 363 查看
---------------------- Windows Phone 7手机开发.Net培训、期待与您交流! ---------------------- StreamReader sr = new StreamReader("d:/data.txt",System.Text.ASCIIEncoding.Default);
string line = string.Empty; int max=0; int score; string name=string.Empty; while ((line = sr.ReadLine())!=null) { string[] data = line.Split('|'); score= Convert.ToInt32(data[2]); if (max < score) { max = score; name = data[0]; } } ----------------------Windows
Phone 7手机开发、.Net培训、期待与您交流! ----------------------详细请查看:http://net.itheima.com/
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息