×

Loading...

Topic

This topic has been archived. It cannot be replied.
  • 工作学习 / IT技术讨论 / Please help me! About the .dat file.Thank you! Hey, scorpio, please come in...
    现在程序已经可以执行了。需要从一个.dat文件里读取数据(里面的数据很简单,不是1就是0)。以前是用36个16*16的矩阵,一次通过。现在要升级到62个30*30的矩阵。可是当读到大约是第33,34个的时候,就出错了,数据大得惊人,起码7,8位数。我调整了.dat文件,还是这样。请问到底是怎么回事呢?谢谢!
    另:我就是在NOTEPAD里直接生成.dat文件的。在VC++里也打开看过了,一切正常。
    • 补充:最令人不解的是,前面的三十来个矩阵都读得好好的,是不是.dat文件写的时候需要注意什么,还是有什么限制?请专家们帮帮忙!谢谢!scorpio,你还在吗?
      • 是不是NOTEPAD的问题。它好象对编辑的文件有限制。 你用ultredit或hexedit 编辑一下试试
        • Thanks! I will have a try and let you know the result.
        • BTW,where can I download the ultredit or hexedit?Thank you!
          • try this www.download.com
            • No, I have tried it. But I have solved the problem. I just open the VC++ and creat the .dat file in VC editor. It works!! Thank you for your all!!
      • 什么叫。DAT的矩阵啊
    • 1 notepad的上限是64K。2 如果data只有01的话建议用binary写。 3 为什么不用方程代替这些数据?
      • I think she doesn't know the difference of ASCII code and binary code.
      • Thanks. I have solved the problem. I don't know what is your meaning by using the function instead of data. I need to read the pixels(30*30) of the character,from a-z,A-Z and 0-9.And use them to train the FNN.
        Can I use some functions to do this? And which functions?Thank you!
    • Sounds like a overflow or out of bound problem. Is your LG a IT guy? Maybe he can help you.
      • Thank you! I have solved it.