Skip to main content
gamedev.net
🔒 Locked

C++ Operators

Started by CppDave Mar 19, 2003 at 7:29 PM 2 replies 250+ views
Original Post
CppDave
CppDave
I''ve been through the MSDN Help libery for MSVC++ and i found operators to to everything but rise a number so have to do this long Rise(long N1, long N2) { for(int i = 1; i <= N2; i++) { N1 = N1 * N1; } } does anyone now the operator i thought i would be ^ but that does a bitwise-exclusive-OR. please help
alnite
alnite
I believe pow() function from math.h does the job...


Current project: 2D in Direct3D engine.
% completed: ~20%
CppDave
CppDave
thanks i never thought of looking under pow or power.
thanks very much

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.