Question: I don't understand what I could be missing.... Should I make it into a For loop? Jump to level 1 Use cin to read integer
I don't understand what I could be missing.... Should I make it into a For loop?
Jump to level 1 Use cin to read integer lineNumber from input until the next lineNumber read is equal to -1 . If lineNumber is not equal to -1, use currCertificate's ReadHolderAndDivision0 to read the certificate's holder and division from input and append currCertificate to vector certificateList. Ex: If the input is: 1 Jen A 2 Ron B 3 Guy B 1 then the output is: Certificate: Jen, Division: A Certificate: Ron, Division: B Certificate: Guy, Division: B \begin{tabular}{ll} \hline 23 & int main() \{ \\ 24 & unsigned int i; \\ 25 & vector certificateList; \\ 26 & Certificate currCertificate; \\ 27 & int lineNumber; \\ 28 & \\ 29 & cin > lineNumber; \\ 30 & \\ 31 & while (lineNumber !=1){ \\ 32 & certificateList. ReadHolderAndDivision(lineNumber); \\ 33 & cin >> lineNumber; \\ 34 & \\ 35 & for (i =0; i
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
