Standard Template Library (STL library) pptx

51 268 0
Standard Template Library (STL library) pptx

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

Thông tin tài liệu

Standard Template Library (STL library) Now consider taking the form of Intset.cpp and reshaping it to display a list of the words used in a document The solution becomes remarkably simple //: C04:WordSet.cpp #include " /require.h" #include #include #include #include using namespace std; int main(int argc, char* argv[]) { requireArgs(argc, 1); ifstream source(argv[1]); assure(source, argv[1]); string word; set words; while(source >> word) words.insert(word); copy(words.begin(), words.end(), ostream_iterator(cout, "\n")); cout

Ngày đăng: 05/07/2014, 19:20

Từ khóa liên quan

Tài liệu cùng người dùng

Tài liệu liên quan