在C++中,scanf系列函数用于输入,printf系列函数用于输出。 1 scanf系列函数 常用的scanf系列函数包括scanf()、sscanf()和fscanf()。 1.1 scanf()函数 scanf()