C语言
-
C库函数tanh()-C语言实例教程|
C库函数 tanh() #include stdio.h #include math.h int main () { double x , ret ; x = 0.5 ; ret = tanh ( x ); printf ( The hyperbolic tangent of %lf is %lf degrees , x , ret ); retu...
-
C库函数sinh()-C语言实例教程|
C库函数 sinh() #include stdio.h #include math.h int main () { double x , ret ; x = 0.5 ; ret = sinh ( x ); printf ( The hyperbolic sine of %lf is %lf degrees , x , ret ); return ...
-
C库函数sin()-C语言实例教程|
C库函数 sin() #include stdio.h #include math.h #define PI 3.14159265 int main () { double x , ret , val ; x = 45.0 ; val = PI / 180 ; ret = sin ( x * val ); printf ( The sine of ...
-
C库函数cosh()-C语言实例教程|
C库函数 cosh() #include stdio.h #include math.h int main () { double x ; x = 0.5 ; printf ( The hyperbolic cosine of %lf is %lf , x , cosh ( x )); x = 1.0 ; printf ( The hyperbol...
-
C库函数cos()-C语言实例教程|
C库函数 cos() #include stdio.h #include math.h #define PI 3.14159265 int main () { double x , ret , val ; x = 60.0 ; val = PI / 180.0 ; ret = cos ( x * val ); printf ( The cosine...
-
C库函数atan2()-C语言实例教程|
C库函数 atan2() #include stdio.h #include math.h #define PI 3.14159265 int main () { double x , y , ret , val ; x = - 7.0 ; y = 7.0 ; val = 180.0 / PI ; ret = atan2 ( y , x ) * v...
-
C库函数atan()-C语言实例教程|
C库函数 atan() #include stdio.h #include math.h #define PI 3.14159265 int main () { double x , ret , val ; x = 1.0 ; val = 180.0 / PI ; ret = atan ( x ) * val ; printf ( The arc ...
-
C库函数asin()-C语言实例教程|
C库函数 asin() #include stdio.h #include math.h #define PI 3.14159265 int main () { double x , ret , val ; x = 0.9 ; val = 180.0 / PI ; ret = asin ( x ) * val ; printf ( The arc ...
-
C库函数acos()-C语言实例教程|
C库函数 acos() #include stdio.h #include math.h #define PI 3.14159265 int main () { double x , ret , val ; x = 0.9 ; val = 180.0 / PI ; ret = acos ( x ) * val ; printf ( The arc ...
-
C库函数localeconv()-C语言实例教程|
C库函数 localeconv() #include locale.h #include stdio.h int main () { struct lconv * lc ; setlocale ( LC_MONETARY , it_IT ); lc = localeconv (); printf ( Local Currency Symbol: %...
-
C库函数setlocale()-C语言实例教程|
C库函数 setlocale() #include locale.h #include stdio.h #include time.h int main () { time_t currtime ; struct tm * timer ; char buffer [ 80 ]; time ( currtime ); timer = localtim...
-
C库limits.h-C语言实例教程|
C库 limits.h #include stdio.h #include limits.h int main () { printf ( The number of bits in a byte %d , CHAR_BIT ); printf ( The minimum value of SIGNED CHAR = %d , SCHAR_MIN ); p...
-
C库float.h-C语言实例教程|
C库 float.h #include stdio.h #include float.h int main () { printf ( The maximum value of float = %.10e , FLT_MAX ); printf ( The minimum value of float = %.10e , FLT_MIN ); printf...
-
C库宏ERANGE-C语言实例教程|
C库宏 ERANGE #include stdio.h #include errno.h #include math.h int main () { double x ; double value ; x = 2.000000 ; value = log ( x ); if ( errno == ERANGE ) { printf ( Log(%f) ...
-
C库宏EDOM-C语言实例教程|
C库宏 EDOM #include stdio.h #include errno.h #include math.h int main () { double val ; errno = 0 ; val = sqrt ( - 10 ); if ( errno == EDOM ) { printf ( Invalid value ); } else { ...
-
C库宏errno-C语言实例教程|
C库宏 errno #include stdio.h #include errno.h #include string.h extern int errno ; int main () { FILE * fp ; fp = fopen ( file.txt , r ); if ( fp == NULL ) { fprintf ( stderr , Va...
-
C库函数toupper()-C语言实例教程|
C库函数 toupper() #include stdio.h #include ctype.h int main () { int i = 0 ; char c ; char str [] = Tutorials Point ; while ( str [ i ]) { putchar ( toupper ( str [ i ])); i ++ ...
-
C库函数tolower()-C语言实例教程|
C库函数 tolower() #include stdio.h #include ctype.h int main () { int i = 0 ; char c ; char str [] = TUTORIALS POINT ; while ( str [ i ] ) { putchar ( tolower ( str [ i ])); i ++...
-
C库函数isxdigit()-C语言实例教程|
C库函数 isxdigit() #include stdio.h #include ctype.h int main () { char var1 [] = tuts ; char var2 [] = 0xE ; if ( isxdigit ( var1 [ 0 ]) ) { printf ( var1 = |%s| is hexadecimal ...
-
C库函数isupper()-C语言实例教程|
C库函数 isupper() #include stdio.h #include ctype.h int main () { int var1 = M ; int var2 = m ; int var3 = 3 ; if ( isupper ( var1 ) ) { printf ( var1 = |%c| is uppercase charact...