I am trying to write a sentence inside a stringstream. Here is my sketch:
stringstream is;
float position_angle0;
position_angle0=12.5;
is << "setpos1 0 %d ", int(position_angle0);
I guess there is something wrong because it seems not working. Can you please tell me the correct way to do this?