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();