一个子程序,它创建一个具有给定名称的文件并输出一个给定的内容
问题描述:
创建具有给定名称的文件的子例程,并将数组的内容输出到给定的命名文件
应该通过以下方式调用它:
& WriteToFile(``suppliers.txt'''',@ suppliers);其中`@suppliers''包含供应商的所有``name:number''''组合,'`suppliers.txt''''是要创建的文件的名称。
需要帮助!
a subroutine that creates a file with a given name and outputs the contents of a array to given named file
It should be called in the following way:
&WriteToFile(``suppliers.txt'''', @suppliers); where `@suppliers'' contains all the ``name: number'''' combinations for
the suppliers, and ``suppliers.txt'''' is the name of the file to create.
need help on this one !!!
答
你和scuzz88是同一个人,还是同一个人?
我们不会做你的功课,但我们可以给你一些指导。 />
首先尝试自己编写sub,当遇到问题时,发布代码并提出具体问题。您的帖子应该包含您的代码生成的所有警告和错误消息。
您的脚本应该在顶部附近包含这2行。
Are you and scuzz88 the same person, or just in the same class?
We are not going to do your homework, but we can give you some guidance.
Start by trying to write the sub yourself and when you get stuck, post your code and ask specific questions. Your post should include all warnings and error messages that your code produces.
Your script should include these 2 lines near the top.
展开 | 选择 | Wrap | 行号
当然我加入了课程1个月晚了
i我确定它不是导师而是我!!!
非常适合任何帮助
of course i joined the class 1 month late
i am sure its not the instructor but me!!!
would be very great full for any help
你尝试过什么?
在打电话给你的时候不要用''&'' sub。
不要使用原型,而不是:
What have you tried?
Don''t use ''&'' when calling the sub.
Don''t use prototypes i.e., instead of:
展开 | 选择 | Wrap | 行号