文章列表
#include stdio.h#include math.hint main () {double x, ret;x = 10000;/* finding value of log1010000 */
#includestdio.h#includemath.hint main () {double x, fractpart, intpart;x = 8.123456;fractpart = modf(x, intpart);
#include stdio.h#include math.hint main () {printf(Value 8.0 ^ 3 = %lf\\n, pow(8.0, 3));
#include stdio.h#include math.hint main () {double x, ret;int n;x = 0.65;n = 3;ret = ldexp(x ,n);
#include stdio.h#include math.hint main () {double x = 1024, fraction;int e;fraction = frexp(x, e);
#include stdio.h#include math.hint main () {double x = 0;printf(The exponential value of %lf is %lf\\n, x, exp(x));
// C语言库isalnum()函数#include stdio.h#include ctype.hint main () {int var1 = d;
// C语言参数化宏 // -----------------------------#include stdio.h#define MAX(x,y) ((x) (y) ? (x) : (y))
// C语言defined()运算符#include stdio.h#if !defined (MESSAGE)#define MESSAGE You wish!
#include stdio.h// --------------------------------#definemessage_for(a, b)\\printf(#a and #b : We love you!\\n)