string delpath = pathxfi + "/" + imgname;
const char* delpathc = delpath.data();
if (remove(delpathc) == 0)
{
cout << "刪除成功:" << imgname << endl;
}
else
{
cout << "刪除失敗" << endl;
}
string delpath = pathxfi + "/" + imgname;
const char* delpathc = delpath.data();
if (remove(delpathc) == 0)
{
cout << "刪除成功:" << imgname << endl;
}
else
{
cout << "刪除失敗" << endl;
}
數組求和 方法一:直接一次for循環 int GetSum1(int *a,int n) { int sum=0; for (int i=0; i<n;i++) { sum+=a[i];