Extracting from strings

I have a string called string arraywall[100]

In arraywall[0] is wall 10 10 20 20.

How do you extract the numbers from this into 4 float numbers.

Thanks

Boak1505
1
2
3
stringstream ss(arraywall[0]);
float a,b,c,d;
ss >> a >> b >> c >> d;
Topic archived. No new replies allowed.