Jul 15, 2012 at 8:25pm UTC
How would you do this if most of the stats were integers?
Jul 15, 2012 at 8:41pm UTC
No, how would you read the file.
Jul 15, 2012 at 9:02pm UTC
Yes, I'm familiar with file I/O.
I'm wondering how you would get integers from a file without reading it as a string.
Last edited on Jul 15, 2012 at 9:06pm UTC
Jul 15, 2012 at 9:10pm UTC
Reading them as integers...
Jul 15, 2012 at 9:16pm UTC
The formatted input operator ( >> ) can read into integers as well as strings.
Jul 15, 2012 at 9:17pm UTC
It gives me a crazy value when I do that.
Jul 15, 2012 at 9:31pm UTC
The code or a picture of the error?
Jul 16, 2012 at 6:26am UTC
It's not difficult. First, you need to build a document flow. Second, you can use directly operators "> >" "< <" for input and output. Finally, you can put the data used in the program.