利用ifstream和stringstream逐行格式化读取文件
(2012-10-26 16:53:14)
标签:
cifstreamstringstream文件分词 |
分类: C/C++技术 |
// Test.cpp : Defines the entry point for the console
application.
//
#include "stdafx.h"
#include <fstream>
#include <sstream>
#include <iostream>
int _tmain(int argc, _TCHAR* argv[])
{
}
输出:
张一
张二
张三