Код: Выделить всё
#include
#include
#include
#include
#include
#include
#include // For std::istringstream
#include "util/base.hpp"
void writeMatrix(const std::vector& matrix, const std::string& out_file_name) {
std::ofstream file(out_file_name);
for (const auto& row : matrix) {
for (size_t i = 0; i < row.size(); i++) {
file
Подробнее здесь: [url]https://stackoverflow.com/questions/78413853/random-shuffle-rows-and-columns-but-retain-names-for-columns-and-rows-in-c[/url]
Мобильная версия