int ch, count=0, desc[10];
This is wrong decleration for desc, what you want as suggested is
const int MAX_SIZE = 10;
desc descriptions[MAX_SIZE]
Then on each function you will pass in descriptions and MAX_SIZE like so
void del(desc[] descriptions, const int MAX_SIZE, int targetCode){
for(int i = 0; i < MAX_SIZE; ++i){
if(descriptions[i].code == targetCode){
descriptions[i] = 0;
}
}
}
Then you can call it like so
int x = 0;
cout << "Enter code to delete: ";
cin >> x;
del(descriptions,MAX_SIZE,x);