Reimplemented LogPtoProb (which is just an exp10 call)
[vspell.git] / utils / posgen-test.cpp
blob9a8ea1e0c1e66fd422dda7a9b8dc1e669254f43b
1 #include "posgen.h"
2 #include <fstream>
3 #include <iostream>
4 #include <algorithm>
5 #include <iterator>
7 using namespace std;
9 int main()
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;
25 return 0;