廢話那麼多,其實只需要使用#include ifstream fin("in.txt"); int temp; while(fin>>temp) array.push_back(temp); 就行了~~ ht.
確定! 回上一頁