#include "dataTest.h" #include #include dataTest::dataTest() { for (int i = 0; i < 1000; i++) { entrys.push_back(solution(2000, i)); } entrys.at(0).bits[34] = true; solution sol = entrys.at(0); qDebug() << sol.toQString(); } dataTest::~dataTest() { } QString dataTest::solution::toQString() { std::ostringstream os; copy(bits.begin(), bits.end(), std::ostream_iterator(os, "")); return QString::fromStdString(os.str()); }