-
arrays
hi i have to set up an array i've got the following structure:
ward good("Good",5);
Med("Med",5);
poor("Poor",3);
Patient GoodPat[5];
Medpat[5];
Poorpat[3];
can someone please rephrase that in c++ as i am having trouble with arrays and c++. I got the above from a book any help would be appreciated thanks
-
Try checking out our two FAQ's before we do your homework, show some effort.
-
Ward condition [3] ={
good("Good",5),
Med("Med",5),
poor("Poor",3),
};
Patient condition[3]={
GoodPat[5],
Medpat[5],
Poorpat[3],
};
attempted!:) is that a correct way to declare the arrays? thanks
-
here is a simple array declaration of type integer, with 24 elements. Remember the index for an array begins at 0 not 1.:
int anArray[24];