主题:谢谢各位了,我自己来行了! -- 锦候
建议如下:
1. First step, try to read a text file line by line
2. Use the split() function to put the readings into a string array. From the array, it's easy to find out the upperbound, so you will know how many figures in that line.
3. If you have not trouble doing step 1 and 2, you now can consider use a data structure to hold the readings, such as System.Collections.Generic.Dictionary(Of Integer, String), use the sales person id as the key.
4. Loop through the collection, to perform your calculation.
Good luck with your assignment!
- 相关回复 上下关系8
🙂del 锦候 字0 2007-10-31 19:49:15
🙂疑问:既然能够生成.txt文件,为啥不直接写入数据库,省事多了 1 罗博 字0 2007-10-31 19:08:53
🙂这个您得问老师了,我们是刚开始学。 锦候 字22 2007-10-31 19:14:04
🙂一步一步来
🙂谢谢,其实您的帖子对我启发很大,不愧是高手。 锦候 字49 2007-11-01 00:47:47
🙂锦兄太客气了 懒厨 字88 2007-11-01 21:33:32
🙂谢谢您的鼓励! 锦候 字223 2007-11-02 07:21:05
🙂不知锦兄能否听我一句逆耳之言? 1 懒厨 字286 2007-11-04 18:56:54