Last change
on this file since 35 was
29,
checked in by landauf, 16 years ago
|
updated boost from 1_33_1 to 1_34_1
|
File size:
587 bytes
|
Line | |
---|
1 | // © Copyright John R. Bandela 2001. |
---|
2 | |
---|
3 | // Distributed under the Boost Software License, Version 1.0. (See |
---|
4 | // accompanying file LICENSE_1_0.txt or copy at |
---|
5 | // http://www.boost.org/LICENSE_1_0.txt) |
---|
6 | |
---|
7 | // See http://www.boost.org/libs/tokenizer for documenation |
---|
8 | |
---|
9 | |
---|
10 | // simple_example_1.cpp |
---|
11 | #include<iostream> |
---|
12 | #include<boost/tokenizer.hpp> |
---|
13 | #include<string> |
---|
14 | |
---|
15 | int main(){ |
---|
16 | using namespace std; |
---|
17 | using namespace boost; |
---|
18 | string s = "This is, a test"; |
---|
19 | tokenizer<> tok(s); |
---|
20 | for(tokenizer<>::iterator beg=tok.begin(); beg!=tok.end();++beg){ |
---|
21 | cout << *beg << "\n"; |
---|
22 | } |
---|
23 | return 0; |
---|
24 | } |
---|
25 | |
---|
Note: See
TracBrowser
for help on using the repository browser.