Math operator problem

  • Thread starter Thread starter Pawel
  • Start date Start date
P

Pawel

How do you use a (pow) statement in visual c++.net 2003
standard edition?
I want to calculate something and then display it to the
user. But in a windows based enviornment not dos.
What do you have to include and how?
PG
 
You have to include math.h

Here is a simple example:

#include <stdio.h>
#include <math.h>

void main()
{
printf ("pow(1.0,0.0) = %f",pow(1.0,0.0));
}

output:
pow(1.0,0.0) = 1.000000


--------------------
 
Back
Top