Ask your own question, for FREE!
Computer Science 14 Online
OpenStudy (anonymous):

2. According the user input, dynamically allocate an array of type of “record” defined above called waitingList. If the user input is n, then such array should have n elements. i was wondering how to do this part or could someone explain it to me

OpenStudy (anonymous):

please post some of the code and point out which part you are struggling with

OpenStudy (anonymous):

#include<iostream> using namespace std; struct record { char lastname[100]; char iD[50]; int score; }; #define Maxwaitlist; cout<<"enter the size of the waiting list:\n"<<endl; cin>>Maxwaitlist; class queue { public:

OpenStudy (anonymous):

this is the code i have so far and i am struggiling with the step i asked earlier.

OpenStudy (espex):

How about something like this: record * myRecords; myRecords = new record [Maxwaitlist];

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!