1. I am assuming that the cpp file is your main cpp file (with the main method in it). Because otherwise, it is hard to say. It depends on which cpp file you are talking about and what you are trying to accomplish. My bet is no... see the other issues.
2. If you ARE talking about your main method, then it depends on what you are trying to do. Are you trying to create an instance of ready queue if input = 'A' or are you trying to call the ready_queue function?
2 A: If you are trying to create an instance of ReadyQueue then you need to rename the function to be the same as the class name and remove the void type in front of it.
2 B: If you are trying to simply call the ready_queue function, you cannot call ready_queue() without having an instance of the class and referring to that class before calling its function. Like this:
No; ready_queue() is a method and requires a ReadyQueue object in order to call it. Thinking about it, if you could just call it like that, what 'tail' would it operate on? You may want to check out this tutorial for some information about how classes work: http://www.cplusplus.com/doc/tutorial/classes/
Accidentally deleted post on phone but basically you don't want to increment the pointer you want to increment what is being pointed to like you are now and he reason you get 1 each time is you point to a variable with a value of 0 each time. Eight make it static or put it in a constructor
Thank you so much! So this is in my main file. My user needs an option for case c1.....c9, p1.....p9 and d1......d9. Any suggestions? Greatly appreciated!