fstream& fstream::getline(char*pbuf,int n,char delim); 返回fstream 自身引用,此時fstream 的狀態是讀完當前行後的狀態。 Example while(f.good()){ f.getline(buf,MAX_PATH); } by constantyy - C/C++ - 閱讀(0) 回覆(0)
blog.chinaunix.net