shanebond @ Thu Nov 18, 2010 6:51 am wrote:
int main (int argc, char *argv[],int pno)
What is this "pno". Why do you use it? Does your research indicate that it is portable?
shanebond @ Thu Nov 18, 2010 6:51 am wrote:
int NUMBER_OF_PATIENTS;
This is not a constant. I do not think all-caps reflects that.
shanebond @ Thu Nov 18, 2010 6:51 am wrote:
Input input[NUMBER_OF_PATIENTS];
VLAs are not part of the C++ Standard.
shanebond @ Thu Nov 18, 2010 6:51 am wrote:
system("pause");
Are you getting this from iostream? Should you be?
I suspect that the assignment came with suggestions on how the sorting should be done. I see no attempt at sorting here.
Think about what you need to do the sorting: you probably need to do comparisons and you probably need some way of reordering the data.