读取一定规律的数据到数组出错

读取一定规律的数据到数组出错求助
这是程序核心代码:
 using namespace std;
    ifstream fin(filepath);
    static int i=0;
    string s;
    while(fin>>s){
        i++;
    }
    xx=new double[i/3];
    yy=new double[i/3];
    for(int p=0;p<(i/3);p++)
    {
        fin>>xx[p];
        fin>>yy[p];
       fin>>vector_string[p];
    }
这是datatxt数据:
1.1 2.3 CA
2.3 3.6 CA
3.7 4.6 CB
程序目的很简单,读取datatxt文件内容,然后分别把每行的第一个数据存入xx数组,第二个数据存入yy数组,第三个数据存入std::vector<std::string> vector_string里面,debug了很久还是错误,求教
------解决方案--------------------
vector_string 分配了吗?