Пример #1
0
void TablePile::Print()
{
	if(isEmpty())
	{
		PlaceCursor(x,y);
		cout<<"EMPTY";
	}
	else
	{
		stack<Card*> temp;

		while( thePile.size() > 0 )
		{
			temp.push(thePile.top());
			thePile.pop();
		}

		for(int i=0; temp.size() > 0; i++)
		{
			PlaceCursor(x+i, y);

			temp.top()->Print();
			thePile.push(temp.top());
			temp.pop();
		}
	}

}
Пример #2
0
void PlaceCursor(const int x, const int y) 
{
	PlaceCursor(25,25);
	std::cout << "Salve Munde!";
	return;
}