+ 1
C++ Lesson 56
In C++ Lesson 56, the essence of the method is not clear. I looked there to add numbers 42, 2, 8, 128 using the method. Is that one person with number 42? Or is the addition of 42 people? Please, help.
1 Antwort
+ 1
That 42 represents one person(a customer) with an identifying number of 42.
This part of the problem description says they're customer ID's:
"You are working on a Queue management system and need to create the class to hold the queue data, which are customer IDs (integers)."
When I solved it originally, I didn't even look at that. Only the add method needs your attention so the rest of the code shouldn't be changed. It is fine if you're curious but just don't make the mistake of rewriting a bunch of the code they provided. Hint: I added 4 lines of code and that was it.