C语言:printf和scanf

printf函数,输出函数

printf输出格式:

char %c

short int %hd

int %d

long int %ld

float %f

double %lf

 

scanf函数,输入函数

scanf的读取格式:

char %c

short int %hd

int %d

long int %ld

float %f

double %lf

 

posted @ 2014-11-01 16:48  铅笔程序员  阅读(174)  评论(0)    收藏  举报