文件输入和输出 [英] File input and output
问题描述
程序输入正常,但我无法操纵信息(工作小时数*支付)。我将所有数组设置为字符数组,我相信这可能是问题所在。
您是如何操纵数据的?操纵字符数组很常见。您正在尝试哪些具体方法/功能不起作用?
嘿所有。我正在使用文件输入/输出程序。程序从文件中获取输入,操作信息,然后将信息输出到另一个文件。
程序输入正常,但我无法操纵信息(工作小时数*支付)。我将所有数组设置为字符数组,我相信这可能是问题所在。
这很好,你知道确定问题的位置,这是第一个,也许(可能)是最困难的一步。请你发布那个麻烦的代码,我们可以帮你解决这个问题吗?
如果你还没读过发布指南就好了,他们会帮助你回答一下更快..
:D
Savage
嘿Savage,抱歉没发布代码马上。我意识到我在排除故障时从程序中取出了一些信息,我正在出门。
这是代码:
展开 | 选择 | Wrap | 行号
Hey all. I am working with a file input/output program. The program is take input from a file, manipulate the info, and then output the info to another file.
The program takes the input just fine, although I am unable to manipulate the info (hours worked* payrate). I have all arrays set as character arrays, I believe that might be the problem.解决方案How are you trying to manipulate your data. Manipulating character arrays is quite common. What specific methods/functions are you trying that aren''t working?
Hey all. I am working with a file input/output program. The program is take input from a file, manipulate the info, and then output the info to another file.
The program takes the input just fine, although I am unable to manipulate the info (hours worked* payrate). I have all arrays set as character arrays, I believe that might be the problem.That''s good,u know to determine where the problem is and this is first and(probably) ur hardest step.Can u please post that troubleshoting code,so that we can help u solve it?
And it would be nice if u please read posting guidelines if u haven''t already,they will help u to get ur answer a way more faster..
:D
Savage
Hey Savage, sorry for not posting the code right away. I realized I had taken out some info from the program while troubleshooting, and I was on my way out the door.
Here is the code:
Expand|Select|Wrap|Line Numbers
这篇关于文件输入和输出的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文