西西河

主题:谢谢各位了,我自己来行了! -- 锦候

共:💬28 🌺9
分页树展主题 · 全看首页 上页
/ 2
下页 末页
              • 家园 您说的那里是逆耳之言,乃是肺腑之言。我怎么会不听?

                我年纪不小了,过3望4了,工作了几年,又回去读书的。一直是半工半读,所以时间拖的长些。

                您说的我会记住的。谢谢了!

      • 家园 对了,对了,您是高手。您别光给纲领性文件呀!

        能不能具体一点,最好给个例子什么的,我对这个vb很不适应。谢谢您了!我看了几个类似的例子,跟着做没什么问题,可自己做就不行了!

        • 家园 万万不敢当

          放狗一大堆例子,不放狗,还可以看看Help Menu -> How Do I....

          建议用单独的程序来做第一,第二步,弄清楚了再开一个新的程序把它们合并起来。

          'Code Example of reading a text file line by line:

          Dim FILE_NAME As String = "C:\test.txt"

          Dim objReader As New System.IO.StreamReader(FILE_NAME

          Dim TextLine As String

          Do While objReader.Peek() <> -1

          TextLine = objReader.ReadLine()

          Loop

          'code example of the split function

          Dim str1 As String = "ppp"

          Dim str2 As String = "ccc"

          Dim str3 As String = "kkk"

          Dim strAll3 As String = str1 + ", " + str2 + ", " + str3

          Dim strArray() As String = strAll3.Split(",")

          The online help of the generic dictionary example is very detailed, you can find an example from there.

          Good luck again!

          • 家园 天!我真的已经死了,竟然连放狗都忘了!

            不过这个要用什么关键词?

            visual basic计算销售额?谢谢了!

            还说不是高手?太谦虚了!我动手太晚了!唉!

            万圣节快乐!

            • 家园 倒也!

              以为我已经很懒,没想到您比我还懒,放狗搜计算器恐怕是不行的,但您可以一样一样的搜嘛

              vb.net read text file line by line

              vb.net string split function

              vb.net System.Collections.Generic.Dictionary

              只要每样都弄好了,合并起来不难的。

              • 家园 冤枉,冤枉,真的不是懒。而是没信心了!

                我在从到这个大学后,除了paper和term project这类的东西,任何一课平时的任何一次作业从来都没有超过2个小时搞不定,这次被折腾了好久了。放弃的心都有了!

                我这门课选课就晚了,迟了两个星期才去上课。中间又病了一次,缺了几次课,下来也没好好的看书。还没来得及就赶上这个作业了,满头汗呀!哎,最多给我一个星期我就可以把书从头到尾看完了。可恨呀,明天就要交了!我几个小程序都写了个大概,但是总体的结构一点概念都没有。气死了!

                谢谢了!

                • 家园 千万不要放弃

                  又让人误解了一回,我说的是您放狗放的是懒狗,倒不是说您懒。。。

                  您说的总体概念,不知到底那里不明白?

                  我建议从用户界面倒推回去.

                  Form Design like this:

                  one form, one button, and several text boxes for the output.

                  Click the button, it will read your text file, do the calculation and put the results in seperate text boxes.

                  You can simply put the code behind the click event of the button.

                  Of course, if you have enough time, you can make the output more elegant. But I guess as long as you get the output, your teacher will be happy.

    • 家园 英文,看不懂
分页树展主题 · 全看首页 上页
/ 2
下页 末页


有趣有益,互惠互利;开阔视野,博采众长。
虚拟的网络,真实的人。天南地北客,相逢皆朋友

Copyright © cchere 西西河