Idk how to put powers in a program.^ doesn't work.
does anyone know why? Is it my libraries?:
#include %26lt;cstdlib%26gt;
#include %26lt;iostream%26gt;
#include %26lt;windows.h%26gt;
#include %26lt;math.h%26gt;
C++ Powers help?
If your using math.h you don't need to add the math. in there, it's only for the .NET framework.
Just use pow(x, y);
remeber it runs using floating point numbers so don't go sticking in integers there unless you want errors.
Reply:math.pow(x, 2)
http://msdn2.microsoft.com/en-us/library...
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment