Is there any way to read a formatted string like this, for example :48754+7812=Abcs.
:48754+7812=Abcs
Let\'s say I have three stringz X,Y and Z, and I want
#include #include int main(int argc, char **argv) { std::string str = ":12341+414112=absca"; std::stringstream ss(str); int v1, v2; char col, op, eq; std::string var; ss >> col >> v1 >> op >> v2 >> eq >> var; std::cout << v1 << " " << v2 << " " << var << std::endl; return 0; }