Reading a string from a file in C++
问题 I'm trying to store strings directly into a file to be read later in C++ (basically for the full scope I'm trying to store an object array with string variables in a file, and those string variables will be read through something like object[0].string). However, everytime I try to read the string variables the system gives me a jumbled up error. The following codes are a basic part of what I'm trying. #include <iostream> #include <fstream> using namespace std; /* //this is run first to create