c++ - How to output everything AFTER a specific string? -


for example, have winsock application that's consistently receiving packets "*user" in them. after "*user" different in each packet, how can output after "*user"? in advance.

also important note "*user"'s position in packet different each time.

                    size_t start2 = rdata.find("*user");                     size_t end2 = rdata.find(";");                      cout << rdata.substr(start2, end2 - start2); 


Comments

Popular posts from this blog

user interface - How to replace the Python logo in a Tkinter-based Python GUI app? -

objective c - Greedy NSProgressIndicator Allocation -

how to set an OCR language in Google Drive -