I'm working on a program that reads linear equations from a file such as those - and solve them using matrices - :
3x+2y-2z=9
-2x+9y+12z=23
4x-7y+9z=45
The file is supposed to contain n equations with n variables , how to get only the numbers and the signs from the above equations to store in 2d dynamic array of Integers
So output will be (some thing like this):
3 2 -2 9
-2 9 12 23
4 -7 9 45
Thanks in Advanced