How to open a file using ifstream and keep reading it until the end
问题 I simply would like to open a file named "test.txt" that contains: cat dog moose rabbit I then want to read from the file and convert its contents into strings for things that I will do later in the program. So far i think what I am doing is going in the right direction. However, I am getting an error and I am unsure what to do. Here is the Error>>> $ make -f makefile.txt g++ -g -D HASH_TABLE_SIZE=10 -c hash.cpp hash.cpp: In member function `void Hash::processFile(std::string)': hash.cpp:12: