stdio.h就是指“standard input&output" 意思就是說標(biāo)準(zhǔn)輸入輸出頭文件! 所以了,用到標(biāo)準(zhǔn)輸入輸出函數(shù)時,就要調(diào)用這個頭文件!
調(diào)用 #include<stdio.h> 或#include"stdio.h" 在TC2.0中,即使不加此文件包含命令也可以編譯通過。stdio.h中的標(biāo)準(zhǔn)輸入輸出函數(shù) int getchar() //從標(biāo)準(zhǔn)輸入設(shè)備讀入一個字符,顯示 int putchar() //向標(biāo)準(zhǔn)輸出設(shè)備寫一個字符 int scanf(char *format[,argument…]) //從標(biāo)準(zhǔn)輸入設(shè)備讀入數(shù)據(jù) int printf(char *format[,argument…]) //格式化字符串輸入到標(biāo)準(zhǔn)輸出設(shè)備 int puts(char *string) //輸出一個字符串到標(biāo)準(zhǔn)輸出設(shè)備 char *gets(char *string) //從標(biāo)準(zhǔn)輸入設(shè)備讀入一個字符串 int sprintf(char*string,char*format[,…])//格式化一個字符串輸出到字符數(shù)組中,不顯示
|