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
Added .gitignore
[vspell.git]
/
tests
/
syllable-test.cpp
blob
f104db4c3027a42952d497fb48aa400786a6c448
1
#include <iostream>
2
#include <string>
3
#include
"dictionary.h"
4
#include
"syllable.h"
5
6
using namespace
std
;
7
8
bool
syllable_init
();
9
int
main
()
10
{
11
Syllable i
;
12
string str
;
13
14
syllable_init
();
15
16
while
(
cin
>>
str
) {
17
cout
<<
i
.
parse
(
str
.
c_str
()) <<
": "
;
18
cout
<<
i
<<
" "
<<
i
.
to_str
() <<
endl
;
19
}
20
return
0
;
21
}