Description: Input is a sequence of commands. The command keywords BACK, FORWARD, VISIT, and QUIT are all in uppercase. URLs have no whitespace and have at most 70 characters. You may assume that no problem instance requires more than 100 elements in each stack at any time. The end of input is indicated by the QUIT command.
For each command other than QUIT, print the URL of the current page after the command is d if the command is not ignored. Otherwise, print Ignored . The output for each command should be printed on its own line. No output is produced for the QUIT command.
To Search:
File list (Check if you may need any files):
No5-1028\No5.cpp
........\No5.exe
No5-1028