Files
tokenizer/simple_example_1.cpp
Beman Dawes 0854dc07e9 Tokenizer initial commit
[SVN r10319]
2001-06-13 00:46:03 +00:00

16 lines
316 B
C++

// simple_example_1.cpp
#include<iostream>
#include<boost/tokenizer.hpp>
#include<string>
int main(){
using namespace std;
using namespace boost;
string s = "This is, a test";
tokenizer<> tok(s);
for(tokenizer<>::iterator beg=tok.begin(); beg!=tok.end();++beg){
cout << *beg << "\n";
}
}