DON'T REGARD THIS

closed account (38qG1hU5)
// Example program
#include <iostream>
#include <string>

using namespace std;

int main()
{
srand();
int player1points = 100;
int player2points = 100;
int player1card = rand() %13;
int player1card2 = rand() %13;
int player2card = rand() %13;
string cardnameP1;
string cardname2P1;
string cardnamep2;
string cardname2p2;

if (player1card == 1)
{
cardnameP1 = "1";
}
if (player1card == 2)
{
cardnameP1 = "2";
}
if (player1card == 3)
{
cardnameP1 = "3";
}
if (player1card == 4)
{
cardnameP1 = "4";
}
if (player1card == 5)
{
cardnameP1 = "5";
}
if (player1card == 5)
{
cardnameP1 = "5";
}
if (player1card == 6)
{
cardnameP1 = "6";
}
if (player1card == 7)
{
cardnameP1 = "7";
}
if (player1card == 8)
{
cardnameP1 = "8";
}
if (player1card == 9)
{
cardnameP1 = "9";
}
if (player1card == 10)
{
cardnameP1 = "10";
}
if (player1card == 11)
{
cardnameP1 = "Jack";
player1card = 10;
}
if (player1card == 12)
{
cardnameP1 = "Queen";
player1card = 10;
}
if (player1card == 13)
{
cardname = "King";
player1card = 10;
}
if (player1card2 == 1)
{
cardname2P1 = "1";
}
if (player1card2 == 2)
{
cardname2P1 = "2";
}
if (player1card2 == 3)
{
cardname2P1 = "3";
}
if (player1card2 == 4)
{
cardname2P1 = "4";
}
if (player1card2 == 5)
{
cardname2P1 = "5";
}
if (player1card2 == 5)
{
cardname2P1 = "5";
}
if (player1card2 == 6)
{
cardname2P1 = "6";
}
if (player1card3 == 7)
{
cardname2P1 = "7";
}
if (player1card2 == 8)
{
cardname2P1 = "8";
}
if (player1card2 == 9)
{
cardname2P1 = "9";
}
if (player1card2 == 10)
{
cardname2P1 = "10";
}
if (player1card2 == 11)
{
cardname2P1 = "Jack";
player1card2 = 10;
}
if (player1card2 == 12)
{
cardname2P1 = "Queen";
player1card2 = 10;
}
if (player1card2 == 13)
{
cardname2P1 = "King";
player1card2 = 10;
}

}
What do you want clarified? Plz specify...
PS:i presume "dont regard this" means sarcasm
And I thought by your 16th post you'd know how to use code tags - http://www.cplusplus.com/articles/jEywvCM9/
Topic archived. No new replies allowed.