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
Reimplemented LogPtoProb (which is just an exp10 call)
[vspell.git]
/
utils
/
posgen-test.cpp
blob
9a8ea1e0c1e66fd422dda7a9b8dc1e669254f43b
1
#include
"posgen.h"
2
#include <fstream>
3
#include <iostream>
4
#include <algorithm>
5
#include <iterator>
6
7
using namespace
std
;
8
9
int
main
()
10
{
11
PosGen gen
;
12
string s
;
13
uint len
,
n
;
14
while
(
cin
>>
len
>>
n
) {
15
gen
.
init
(
len
,
n
);
16
vector
<
uint
>
pos
;
17
uint len
;
18
while
(
gen
.
step
(
pos
,
len
)) {
19
for
(
int
i
=
0
;
i
<
len
;
i
++)
20
cout
<<
pos
[
i
] <<
" "
;
21
cout
<<
endl
;
22
}
23
}
24
25
return
0
;
26
}