Exponents

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
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.