std::vector<std::vector<double>>SplitVecString(std::vector<string> fileContext,int startNu)
{
string textContext;
std::vector<std::vector<double>> allinfor;
std::vector<double>temVecDouble;
bool isEnd = false;
int time = 0;
if (fileContext.size() > 1 )
{
for (size_t i = startNu; i < fileContext.size(); i++)
{
string tempContext;
for (size_t j = 0; j < 1000; j++)
{
textContext = fileContext[i].substr(j, 1);
if (textContext != "," && textContext != " " && textContext != "@"&& textContext != "-")
{
if (time == 0)
{
tempContext = textContext;
time++;
}
else
{
tempContext = tempContext + textContext;
time++;
}
}
else
{
if (textContext == ","|| textContext == "-")
{
temVecDouble.push_back(String2double(tempContext));
time = 0;
continue;
}
else if (textContext == " " && j == 0)
{
time = 0;
isEnd = true;
break;
}
else if (textContext == " " || textContext == "@")
{
time = 0;
break;
}
}
}
allinfor.push_back(temVecDouble);
temVecDouble.clear();
}
}
return allinfor;
}