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
Post a Comment