how to split this text file

I have a problem with splitting this kind of text file
(l,a,b,2) // l means lambda, a and b is input and 2 is I have 2 input
(2,0)(3,0)(0,0)
(0,0)(4,5)(0,0)
(0,0)(0,0)(4,0)
(0,0)(5,0)(5,0)
(*,*)(*,*)(*,*)

I have done it with read every line with C++ coding

ifstream in ("text.txt");
string one;

while (getline (in, one))
{
cout<< one <<endl;
}

can anyone give me some clue how to split it so I can save it into 2D array
Last edited on
Topic archived. No new replies allowed.