getline
Using getline to extract information and store them in a datatype in c++
Here\'s a code that I wrote which isn\'t comple开发者_如何学编程te. string line; ifstream fp (\"foo.txt\");[详细]
2023-02-15 22:03 分类:问答C++: reading data from an external file; problem with my code for stopping read before end of file
To use code I have written for performing calculations, I need to read in data (numbers and strings) from an external text file and store them in vectors of either strings or ints/doubles. I have writ[详细]
2023-02-14 12:18 分类:问答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.[详细]
2023-02-10 21:46 分类:问答C++: follow-up question on reading from an external file using getline(). How to get a subset of the file data?
I need to read in numbers from an external file and store them in a vector of ints.I can do this now thanks to Howard Hinnant and wilhelmtell, who patiently helped figure out why my coding was not wor[详细]
2023-02-10 09:41 分类:问答Accessing to information in a ".txt" file and go to a determinated row
When accessing a text file, I want to read from a specific line. Let\'s suppose that my file has 1000 rows and I want to read row 330. Each row has a different number of characters and could possibly[详细]
2023-02-09 15:38 分类:问答std::cin.getline(f_name, 10)
If I have fo开发者_开发百科r example the following statements: char f_name[11]; std::cin.getline(f_name,10);[详细]
2023-02-06 05:40 分类:问答istream::getline return type
What does the istream::getline method return? I am asking because I have seen that to loop t开发者_如何学运维hrough a file, it should be done like this:[详细]
2023-02-05 12:11 分类:问答getline on MacOSX 10.6 crashing C compiler?
I\'m having a really hard time getting an R library installed that requires some compilation in C.I\'m using a Mac OSX Snow Leopard machine and trying to install this R package (here).[详细]
2023-01-24 11:12 分类:问答Using multiple instances of getline in C++
I\'ve been working on a class assignment for C++ and we\'re required to acquire input from a text file and assign those values to an array....one is a string, the second an int, and the third a double[详细]
2023-01-23 14:18 分类:问答Reading input from text file to array in c++ [duplicate]
This question already has answers here: Reading input from text file to array in c++ (2 answers) Closed 4 years ago.[详细]
2023-01-23 12:21 分类:问答