Horje
c++ get string between two characters Code Example
c++ get string between two characters
string str = "STARTDELIMITER_0_192.168.1.18_STOPDELIMITER";
unsigned first = str.find(STARTDELIMITER);
unsigned last = str.find_last_of(STOPDELIMITER);
string strNew = str.substr (first,last-first);
std::cout << strNew << std::endl;




Cpp

Related
Vs Code cpp not run Code Example Vs Code cpp not run Code Example
cuda shared array Code Example cuda shared array Code Example
libraries required for gaming in c++ Code Example libraries required for gaming in c++ Code Example
easy way to encrypt a c++ file line by line Code Example easy way to encrypt a c++ file line by line Code Example
pros millis() Code Example pros millis() Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
9