-
Help with program
I'm actually not quite sure whether this should be under Advanced or Beginners at the moment but I really need help with this.
For my assignment that's due, I need to implement a queue, making sure all of the methods are implemented, and also write a driver to test it that creates a stack of Strings and reads in a series from standard input. The thing is- if the string starts with an "@" is is one of the particular commands for the program, including @Dequeue, @First, @Size, and @Display. I'm not sure on how to get my program to recognize the @ at the beginning and do what I want it to do based upon the command.
I'm not sure if say a switch statement would work or maybe some kind of if else code set...
-
if / else sounds good to me. Why not try that?
-