Commit 285d920a authored by Steve Tonneau's avatar Steve Tonneau
Browse files

justin stair demo fully functional

parent dd09db23
......@@ -453,10 +453,15 @@ namespace hpp {
{
std::stringstream ss;
ss << lastStatesComputed_.size() << "\n";
for(std::vector<rbprm::State>::const_iterator cit = lastStatesComputed_.begin();
cit != lastStatesComputed_.end(); ++cit)
{
cit->print(ss);
std::vector<rbprm::State>::const_iterator cit = lastStatesComputed_.begin();
int i = 0;
ss << i++ << " ";
cit->print(ss);
for(std::vector<rbprm::State>::const_iterator cit2 = lastStatesComputed_.begin()+1;
cit2 != lastStatesComputed_.end(); ++cit2, ++cit, ++i)
{
ss << i<< " ";
cit2->print(ss,*cit);
}
std::ofstream outfile;
outfile.open(outfilename);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment