Read each line as a string. Find the = character. Put the rest of the string into a stringstream and read, e.g. 1,0 into int, char, int (or double, char, double).
You could use getline to read up to the =, then read an integer, a character (the comma), and an integer
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
#include <iostream>
#include <sstream>
#include <string>
usingnamespace std;
int main()
{
for (string x; getline(cin, x, '='); )
{
int a, b;
char ch;
if (cin >> a >> ch >> b)
cout << a << " : " << b << '\n';
}
}