I have data variable in which I am getting 44 array values from features from other function..
I want to manually pass these values to data variable.
double features[44];
get_features(ecg_series,csv_data.at(0).size(),features);
union Entry data[44];
float result[4];
char filename[100];
char res[4]={'A','N','O','~'};
int index;
for(int i=0;i<44;i++)
{
data[i].missing=-1;
data[i].fvalue=features[i];
// printf("feature[%d]=%.8f\n",i,features[i]);
}
This is my code.
I want to do
- Passing array value to
datavariable directly. This array has 44 double values in it. - Or read above 44 values from csv or other file.
How can I do it?
I am not proficient with C++ so could not get understand about how to do this.