title: c++ calculate all the angles between two angles
body: <p>I have a set of previously defined float values(a set of angles)
  I need a function which takes two angles as input and returns all the angles between them.
  The user first enters a set of angles in float and then the user can enter any two angles(my program should return all the angles between these values) 
  For example
  30,310(return all angles >=30 and &lt;310
  but 
  310,30 should also be valid(angles should wrap around)</p>
  
  <p>Thanks in advance</p>