I am new to c++ and programming in general, and I am in an introductory c++ course. We have to create a program that allows a user to create a random array of a certain size, save it to a file, read from it, and find certain things about it. My problem is I am having difficulty with the file part. I keep getting an error leading me to a header file titled ios_base.h and this line: ios_base(const ios_base&); and here is the error... In copy constructor `std::basic_ios<char, std::char_traits<char> >::basic_ios(const std::basic_ios<char, std::char_traits<char> >&)':
Any help with file writing and reading in functions and help with this error is greatly appreciated.