I have data coming over a socket that looks like this:
(h)(int,char,float,int,char)(/h)(d)(2,a,1.32,45,d)(3,d,3.45,32,a)(/d)
The datatype of the data arriving is dynamic and is only known when the header is received. I then have to create corresponding std::vector
s to store the data. In this case, two int
, two char
and one float
vector. I don't know how to initialize in such a case. Can someone help me out?