I wanted to extract the values from the string in C++. I guess this is not the C++ way of doing this, but that one in particular doesn't work. Any ideas?
string line = "{10}{20}Hello World!"; int start; int end; string text; // What to use here? Is the sscanf() a good idea? How to implement it? cout << start; // 10 cout << end; // 20 cout << text; // Hello World!
std::cinand string streams