sqrt c語言 c語言二級用的編譯器是什么


sqrt c語言 c語言二級用的編譯器是什么

文章插圖
大家好,小跳來為大家解答以上的問題 。c語言二級用的編譯器是什么,sqrt c語言這個很多人還不知道,現在讓我們一起來看看吧!
1、sqrtabbr. 開平方根(square root)其-他-釋-義:平方,根 開根號,開方C語言求平方根函數:sqrt功 能: 計算一個非負實數的平方根 函數原型: 在VC6.0中的math.h頭文件的函數原型為double sqrt(double); 說明:sqrt系Square Root Calculations(平方根計算),通過這種運算可以考驗CPU的浮點能力 。
2、 頭文件:math.h 程序例: #include #includeint main(void) { double x = 4.0, result; result = sqrt(x); //result*result = x printf("The square root of % is %", x, result); return 0; } VC 2008后為重載函數,原型為 float sqrt (float),double sqrt (double),double long sqrt(double long) 注意沒有int sqrt (int) 。
【sqrt c語言 c語言二級用的編譯器是什么】本文到此分享完畢 , 希望對大家有所幫助 。