Arrays.

How do I get the compiler to access an array change its value and paste the New array values to a text file on my desktop.

Lets say I have a blank array. It can hold 5 values. No values are saved. How do I get the pc to accept my input and save it to a text file.

Last edited on
http://www.cplusplus.com/doc/tutorial/arrays/
or, if you are allowed:
http://www.cplusplus.com/reference/vector/vector/

reading input:
http://www.cplusplus.com/doc/tutorial/basic_io/ (you'll have to put this in a loop to read your 5 values)

writing to file:
http://www.cplusplus.com/doc/tutorial/files/ (iterate over your populated array and write to a file)
Thanks...
Topic archived. No new replies allowed.