摘自http://www.cplusplus.com 1. scanf 函数 int scanf ( const char * format, ... ); Parameters format C string that contains a sequence of characters that control how characters extracted from the stream are treated: Whitespace character: the function wil…