#Datapoints problem

2 messages · Page 1 of 1 (latest)

atomic pivotBOT
#

When your question is answered use !solved to mark the question as resolved.

Remember to ask specific questions, provide necessary details, and reduce your question to its simplest form. For tips on how to ask a good question run !howto ask.

torn tendon
#

struct DataPoint {
int id;
string question1;
string question2;
string answer;
}; gets vanished in std::array<double, 4> inputs;
std::vector<double> inputs1 = convert_string_to_inputs(dp.question1);
std::vector<double> inputs2 = convert_string_to_inputs(dp.question2);
std::copy(inputs1.begin(), inputs1.end(), inputs.begin());
std::copy(inputs2.begin(), inputs2.end(), inputs.begin() + 4);
std::cout << "dp.qu1: " << dp.question1 << std::endl;
std::cout << "dp.qu2: " << dp.question2 << std::endl;
std::cout << "dp.answer: " << dp.answer << std::endl;
std::vector<double> outputs = convert_string_to_inputs(dp.answer);