删图片

版权声明: https://blog.csdn.net/weixin_40614261/article/details/82313466
string delpath = pathxfi + "/" + imgname;
const char* delpathc = delpath.data();
if (remove(delpathc) == 0)
{
	cout << "删除成功:" << imgname << endl;
}
else
{
	cout << "删除失败" << endl;
}

猜你喜欢

转载自blog.csdn.net/weixin_40614261/article/details/82313466