Sine function in C / C++
Not being able to use the standard libraries suggests you are doing embedded work.  A more typical approach for calculating sine in that situation would be to:


Translate angles from a 360 degree system to a 256 degree system;
Store sine values for all 256 possible degrees in a lookup table.


You lose a lot of accuracy, but you gain a lot of speed.