函式名
cscanf功能
從控制台執行格式化輸入用法
int cscanf(char *format【,argument, ...】);程式例
#include
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;
}