cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
Beginners
Exponents
Exponents
Mar 1, 2013 at 11:08pm UTC
FaffyWaffle
(64)
Is there a way to output an exponent in c++? I want to show an output of meters cubed. Any help would be great.
Last edited on
Mar 1, 2013 at 11:11pm UTC
Mar 1, 2013 at 11:33pm UTC
Spikerocks101
(39)
this is a cheap way of making things cubed easily
#define cube(a) (a*a*a)
also, you could use math.h:
http://www.cplusplus.com/reference/cmath/pow/
Topic archived. No new replies allowed.