正在加载图片...
例2:库函数的调用。 #include <iostream.h> #include <math.h> void main( float a=900.0 float root=sqrt(a);∥调用库函数 cout <<The square root of <<a <<is: < root < endl 执行结果: The square root of900i:30 2021/224 52021/2/24 5 例2: 库函数的调用。 #include <iostream.h> #include <math.h> void main( ) { float a=900.0; float root = sqrt(a); //调用库函数 cout << " The square root of " <<a << " is: " << root << endl; } 执行结果:The square root of 900 is: 30
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有