I'm working on a program to solve multiple equations, but that's not relevant. What I'm having trouble with is interpreting equations.
e.g. I have a file called data.txt
whose contents are as following:
2x - 5y + 3z = 10
5x + y - 2z = 4
I've been trying to interpret this for quite a while but didn't succeed as I thought C++ would have something like str.split(). What I had in mind was an array with these contents:
2 -5 3 10
5 1 -2 4
How can I do this please?