C++: possible Xcode (Mac) problem. Can't read in numbers from external file using getline()
问题 I'm a Mac Xcode (3.2.2) user, working with the GCC 4.2 compiler, fairly inexperienced with C++ and completely ignorant about compilers. I need to read in numbers from an external file and store them in a vector of ints. I wrote code using streams and getline(). I can compile the code and it runs without errors, but there is no output. It works for a friend (non-Mac and non-GCC 4.2 compiler) though. I did some googling and found several posts about a possible compiler (gcc, Apple) issue in