#include <math.h> int main() { char str[80]; sprintf(str, "Pi 的值= %f", M_PI); puts(str); return(0); }. 让我们编译并运行上面的程序,这将产生以下结果:
確定! 回上一頁