#include<iostream>
#include<string>
#include<Eigen/Dense>
using namespace std;
void string_to_numetric_test()
{
string s1 = "2018.11";
int a1 = stoi(s1);
double c = stod(s1);
float d = stof(s1);
int a2 = a1 + 1;
string b = to_string(a1);
b.append(" is a string");
cout << a1 << "/" << c << "/" << d << "/" << a2 << "/" << b << endl;
}
void string_parsing()
{
string msg = "1.0,2.0,3.0,4.0,5.0,6.0";
stringstream msg_stream(msg);
string cell;
Eigen::Matrix<float, 6, 1> xyzijk;
xyzijk << 0, 0, 0, 0, 0, 0;
int i = 0;
while (getline(msg_stream, cell, ','))
{
xyzijk(i) = stof(cell);//
cout << xyzijk(i) << endl ;
i++;
}
cout << xyzijk << endl;
}