> This function takes a character string of a file name. It opens the file filename for reading.
So consider what you're doing in main, which is opening a file.

> stack *deck = new_stack();...