c++ 幂函数用法

#include <cmath>
#include <iostream>
using namespace std;
int main()
{
int x = 2;
int y = 3;
cout << "2*2*2 = " << pow(x,y) << endl;
return 0;
}

posted @ 2015-01-27 13:22  do+better  阅读(7108)  评论(0编辑  收藏  举报