文章目錄 前言 一、getline() 1.使用格式 前言 當需要輸入一串帶有空格的字元串時,便可使用 getline()。 頭檔案為#include。 一、getline() 1.使用格式