From 4f31cd39fb73c3938d23cee0019c28f42b7edef0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B9=E6=99=93=E8=88=AA?= <1210603696@qq.com> Date: Mon, 22 Dec 2014 15:44:20 +0800 Subject: [PATCH] Update README.md --- README.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index a0db325..7f799b6 100644 --- a/README.md +++ b/README.md @@ -228,14 +228,15 @@ TinySTL ####(7):binary_search_tree<string> ifstream f; - char buff[256] = { 0 }; + //char buff[256] = { 0 }; std::string word; f.open("C:\\Users\\zxh\\Desktop\\text.txt"); TinySTL::vector v; while (f.good()){ f >> word; - std::copy(word.begin(), word.end(), buff); - v.push_back(TinySTL::string(buff, buff + word.size())); + //std::copy(word.begin(), word.end(), buff); + //v.push_back(TinySTL::string(buff, buff + word.size())); + v.push_back(word); } TinySTL::binary_search_tree sbst; ProfilerInstance::start();