Hi! am reading the csv file,however it works when I initialize the data statically.But, the value needs to be declared dynamically and am doing this using vectors. And yet am not able to debug the error.
error C2057: expected constant expression
error C2466: cannot allocate an array of constant size 0
The code pasted here is for static:
struct info
{
string m_register;
string dev_id;
string desc;
string type_id;
string config_id;
string status;
string commandTAG;
string EVENT;
};
const int n=1500;// statically declared;1500 is the total no of values to be read from csv file.