Example #1
0
void Carte::afficherS () {

	Carte* ec = teteS;

	while (ec->_suc != queueS ) {

		ec->afficher();

		ec=ec->_suc;

	}

}
Example #2
0
void Carte::afficherN () {

	Carte* ec = teteN;

	while (ec->_suc != queueN ) {

		ec->afficher();

		ec=ec->_suc;

	}

}
Example #3
0
/**
*\fn afficherS()
*\brief display a card of the S player
*/
void Carte::afficherS() 
{
	if(firstS == nullptr)
	{
		printf("No card");
	}else{
		Carte * cardToDisplay = firstS;
		while(cardToDisplay != nullptr)
		{
			cardToDisplay->afficher();
			cardToDisplay = cardToDisplay->nextCard;
		}	
	}
}