摘要:
string类的push_back的应用-按字符存储数据示例View Code #include <iostream>#include <fstream>#include <string>using namespace std;int main (){ string str; ifstream file("F:\\log.txt",ios::in); while (!file.eof()) { str.push_back(file.get()); } cout << str; return 0;} 阅读全文
posted @ 2011-09-10 14:06
浪里飞
阅读(808)
评论(0)
推荐(0)

浙公网安备 33010602011771号