getline
C++ file IO seeking to a specific line
for instance, I have this test.txt containing : apple computer glass mouse blue ground then, I want to retrieve one random line from the text file.[详细]
2023-03-22 08:05 分类:问答What is Scala for: getline(), std::cin.eof(), std::cin.bad()?
Here is a fragment of C++ code: int AskBase::ask_user(){ for (int tries_left = MAX_TRIES; tries_left;){[详细]
2023-03-21 09:35 分类:问答Getting strings within a getline string
Is there a way to traverse a getline string with a normal string. string nextLi开发者_StackOverflow社区ne;[详细]
2023-03-20 06:03 分类:问答getline() error
I am writing this function that copies the contents of one file into the other. I am using getline() function in my while loop. Somehow, compiler gives me an error. Do you know why?[详细]
2023-03-20 01:10 分类:问答getline not working properly ? What could be the reasons? [duplicate]
This question already has answers here: Closed 11 years ago. Possible Duplicate: getline not asking for input?[详细]
2023-03-19 22:12 分类:问答Error while tokenizing strings from a string
I want to generate a symbol table from a SIC Assembly code. For that I have tried to separate every strings form the assembly code.[详细]
2023-03-19 11:11 分类:问答mmap slower than getline?
I face the challenge of reading/writing files (in Gigs) line by line. Reading many forum entries and sites (including a bunch of SO\'s), mmap was suggested as the fastest option to read/write files.[详细]
2023-03-19 07:00 分类:问答c++ getline cin issue
while (true) { int read = recvData(clientSocket, buf, sizeof(buf)); if(read == SOCKET_ERROR) { cout<<\"Connection with the server is lost. Do you want to exit?\" << endl;[详细]
2023-03-18 19:00 分类:问答My ifstream doesn't seem to be working
This is a main file that I am using to test methods before I implement them.I am trying to get the list of all files in a directory, write them to a txt file (It works fine until here), then read the[详细]
2023-03-12 15:59 分类:问答getline seems to not working correctly
Please tell me what am I doing wrong here. What I want to do is this: 1.Having txt file with four numbers and each of this numbers has 15 digits:[详细]
2023-03-11 03:27 分类:问答