c++ BASIC

1 #include <iostream>
2 using namespace std;
3 int main(){
4     cout<<pow(2,3)<<endl;
5     return 0;
6 }

报错,可以改为以下两种。

1 #include <iostream>
2 #include <cmath>
3 using namespace std;
4 
5 int main(){
6 
7     cout<<pow(2,3)<<endl;
8     return 0;
9 }
1 #include <iostream>
2 #include <math.h>
3 using namespace std;
4 
5 int main(){
6 
7     cout<<pow(2,3)<<endl;
8     return 0;
9 }

 

posted @ 2016-10-02 14:19  BelFuture  阅读(297)  评论(0编辑  收藏  举报
The horizon of life is broadened chiefly by the enlargement of the heart.