Re: Input File Stream(s)


[ Follow Ups ] [ Post Followup ] [ CS1044 Web Discussion Board ] [ FAQ ]

Posted by William D McQuain on November 08, 2001 at 16:32:18:

In Reply to: Input File Stream(s) posted by Q on November 08, 2001 at 13:33:57:

: I feel dumb for asking, but if we are to be using two input files in this program, how are we to declare them inside main()? Thanks for any help!


Two input files... two input stream variables...

However, I think that in a good design you wouldn't be declaring both in main(). You should have one function that reads the entire initial data file and stores data into the parallel arrays. There's no reason that function shouldn't declare its file stream locally.



Follow Ups:



Post a Followup

Name:
E-Mail:

Subject:

Comments:

Optional Link URL:
Link Title:
Optional Image URL:


[ Follow Ups ] [ Post Followup ] [ CS1044 Web Discussion Board ] [ FAQ ]