QT+Opencv 将数组数据存入txt文件代码

int *ptr=new int [cnt];   
 ofstream outfxss12;
    outfxss12.open("xianshi2.txt");
    for (int i=0;i<cnt;i++)
        outfxss12<<ptr[i]<<endl;
    outfxss12.close();

 

展开阅读全文

没有更多推荐了,返回首页