Psst.. new poll here.
Psst.. new forums here.
Microsoft is blocking us again (TY IP Reputation!) so just use oauth login instead. :)
Paste
Pasted as C by Duc ( 5 years ago )
void xoaCot(int**& a, int dong, int &cot, int viTriXoa)
{
for (int j = viTriXoa; j < cot; j++)
{
hoanViCot(a, dong, j, j + 1);
}
for (int i = 0; i < dong; i++)
{
a[i] = (int*)realloc(a[i], (cot - 1) * sizeof(int));
}
int* temp;
temp = (int*)malloc(dong * sizeof(int));
for (int i = 0; i < dong; i++)
{
temp[i] = a[i][viTriXoa];
}
free(temp);
cot--;
}
Revise this Paste