-
cscanf
鎖定
cscanf是一個函數。功 能: 從控制枱執行格式化輸入
- 中文名
- cscanf
- 屬 性
- 函數
- 功 能
- 從控制枱執行格式化輸入
- 用 法
- int cscanf
函數名: cscanf
功 能: 從控制枱執行格式化輸入
用 法: int cscanf(char *format[,argument, ...]);
程序例:
#include <stdio.h>
int main(void)
char string[80];
/* clear the screen */
clrscr( );
/* Prompt the user for input */
cprintf("Enter a string with no spaces:");
/* read the input */
cscanf("%s", string);
/* display what was read */
cprintf("\r\nThe string entered is: %s", string);
return 0;
- 詞條統計
-
- 瀏覽次數:次
- 編輯次數:8次歷史版本
- 最近更新: 思思黏黏