ofstream oufSave;
oufSave.open("a.xls");
if (!oufSave)
{
return;
}
//写TAB键为\t,写换行为endl;
oufSave<<"11111"<<"\t"<<"sssss"<<endl;
oufSave<<"222"<<endl;
【C++】c++写Excel文件
最新推荐文章于 2024-04-25 20:09:15 发布
ofstream oufSave;
oufSave.open("a.xls");
if (!oufSave)
{
return;
}
//写TAB键为\t,写换行为endl;
oufSave<<"11111"<<"\t"<<"sssss"<<endl;
oufSave<<"222"<<endl;