複製鏈接
請複製以下鏈接發送給好友

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;