I am working on the solitaire game and I created an ADT called Rowstack. Inside the Rowstack, I have a function called
"Card popFaceDownCard()" which returns the card at the top of the stack and if the stack is empty, the popCard should return a "RowStackEmpty" exception.

My question is since the return type of this function is my another class
"Card"

so what can I do if i want to return the card?

Since i tried to code the function like that:
Code:
Card rowstack::popFaceDownCard()
{
         return card;
}
However, I get an error msg when i compiled it,
so what should I do to fix this problem?
thanks