12345678910111213141516171819202122232425 |
- #include "pch.h"
- #include "dataTest.h"
- #include <QDebug>
- #include <sstream>
- 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<bool>(os, ""));
- return QString::fromStdString(os.str());
- }
|