repo.or.cz
/
vspell.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
terrible bug in PenaltyDAG and Penalty2DAG.
[vspell.git]
/
tests
/
sentence-test.cpp
blob
3ae88fbc6058981c65151b472224b5a513998eae
1
#include
"sentence.h"
2
#include
"dictionary.h"
3
#include
"wordnode.h"
4
#include <algorithm>
5
#include <iostream>
6
#include <iterator>
7
8
using namespace
std
;
9
10
int
main
()
11
{
12
string str
;
13
14
dic_init
();
15
16
while
(
getline
(
cin
,
str
)) {
17
vector
<
string
>
output
;
18
sentences_split
(
str
,
output
);
19
cout
<<
"Result:
\n
"
;
20
copy
(
output
.
begin
(),
output
.
end
(),
ostream_iterator
<
string
>(
cout
,
"
\n
*"
));
21
}
22
return
0
;
23
}
24