再牛逼的梦想也抵不住傻逼似的坚持!   设为首页 - 加入收藏
您的当前位置:小鱼资料库 > 计算机 > C语言 >

C语言

  • C库函数isspace()-C语言实例教程|

    C库函数 isspace() #include stdio.h #include ctype.h int main () { int var1 = t ; int var2 = 1 ; int var3 = ; if ( isspace ( var1 ) ) { printf ( var1 = |%c| is a white-space chara...

  • C库函数ispunct()-C语言实例教程|

    C库函数 ispunct() #include stdio.h #include ctype.h int main () { int var1 = t ; int var2 = 1 ; int var3 = / ; int var4 = ; if ( ispunct ( var1 ) ) { printf ( var1 = |%c| is a pu...

  • C库函数isprint()-C语言实例教程|

    C库函数 isprint() #include stdio.h #include ctype.h int main () { int var1 = k ; int var2 = 8 ; int var3 = ; int var4 = ; if ( isprint ( var1 ) ) { printf ( var1 = |%c| can be pr...

  • C库函数islower()-C语言实例教程|

    C库函数 islower() #include stdio.h #include ctype.h int main () { int var1 = Q ; int var2 = q ; int var3 = 3 ; if ( islower ( var1 ) ) { printf ( var1 = |%c| is lowercase charact...

  • C库函数isgraph()-C语言实例教程|

    C库函数 isgraph() #include stdio.h #include ctype.h int main () { int var1 = 3 ; int var2 = m ; int var3 = ; if ( isgraph ( var1 ) ) { printf ( var1 = |%c| can be printed , var1 ...

  • C库函数isdigit()-C语言实例教程|

    C库函数 isdigit() #include stdio.h #include ctype.h int main () { int var1 = h ; int var2 = 2 ; if ( isdigit ( var1 ) ) { printf ( var1 = |%c| is a digit , var1 ); } else { print...

  • C库函数iscntrl()-C语言实例教程|

    C库函数 iscntrl() #include stdio.h #include ctype.h int main () { int i = 0 , j = 0 ; char str1 [] = all about programming ; char str2 [] = tutorials point ; /* Prints string til...

  • C库函数isalpha()-C语言实例教程|

    C库函数 isalpha() #include stdio.h #include ctype.h int main () { int var1 = d ; int var2 = 2 ; int var3 = ; int var4 = ; if ( isalpha ( var1 ) ) { printf ( var1 = |%c| is an alp...

  • C库函数isalnum()-C语言实例教程|

    C库函数 isalnum() #include stdio.h #include ctype.h int main () { int var1 = d ; int var2 = 2 ; int var3 = ; int var4 = ; if ( isalnum ( var1 ) ) { printf ( var1 = |%c| is alphan...

  • 参数化宏-C语言实例教程|

    参数化宏 #include stdio.h #define MAX(x,y) ((x) (y) ? (x) : (y)) int main ( void ) { printf ( Max between 20 and 10 is %d , MAX ( 10 , 20 )); return 0 ; }...

  • Defined()操作符-C语言实例教程|

    Defined() 操作符 #include stdio.h #if !defined (MESSAGE) #define MESSAGE You wish! #endif int main ( void ) { printf ( Here is the message: %s , MESSAGE ); return 0 ; }...

  • 令牌粘贴(##)运算符-C语言实例教程|

    令牌粘贴(##)运算符 #include stdio.h #define tokenpaster(n) printf (token #n = %d, token##n) int main ( void ) { int token34 = 40 ; tokenpaster ( 34 ); return 0 ; }...

  • Stringize(#)运算符-C语言实例教程|

    Stringize(#)运算符 #include stdio.h #define message_for(a, b) printf ( # a and # b : We love you! ) int main ( void ) { message_for ( Carole , Debra ); return 0 ; }...

  • 预定义的宏-C语言实例教程|

    预定义的宏 #include stdio.h main () { printf ( File :%s , __FILE__ ); printf ( Date :%s , __DATE__ ); printf ( Time :%s , __TIME__ ); printf ( Line :%d , __LINE__ ); printf ( A...

  • typedefvs#define-C语言实例教程|

    typedef vs #define #include stdio.h #define TRUE 1 #define FALSE 0 int main ( ) { printf ( Value of TRUE : %d , TRUE ); printf ( Value of FALSE : %d , FALSE ); return 0 ; }...

  • typedef-C语言实例教程|

    typedef #include stdio.h #include string.h typedef struct Books { char title [ 50 ]; char author [ 50 ]; char subject [ 100 ]; int book_id ; } Book ; int main ( ) { Book book ; strc...

  • 位域声明-C语言实例教程|

    位域声明 #include stdio.h #include string.h struct { unsigned int age : 3 ; } Age ; int main ( ) { Age . age = 4 ; printf ( Sizeof( Age ) : %d , sizeof ( Age ) ); printf ( Age.a...

  • 位域-C语言实例教程|

    位域 #include stdio.h #include string.h /* define simple structure */ struct { unsigned int widthValidated ; unsigned int heightValidated ; } status1 ; /* define a structure with ...

  • 一次使用一个变量-C语言实例教程|

    一次使用一个变量 #include stdio.h #include string.h union Data { int i ; float f ; char str [ 20 ]; }; int main ( ) { union Data data ; data . i = 10 ; printf ( data.i : %d ...

  • 访问联合体成员-C语言实例教程|

    访问联合体成员 #include stdio.h #include string.h union Data { int i ; float f ; char str [ 20 ]; }; int main ( ) { union Data data ; data . i = 10 ; data . f = 220.5 ; strcp...

小鱼资料库 www.xiaoyuzl.com

Copyright © 2020-2022 XIAOYUZL. All rights reserved. 冀ICP备2020029262号-2

声明:本站分享的文章、资源等均由网友上传,版权归原作者所有,只用于搜集整理。如有侵权,请您与站长联系,我们将及时处理!

Top