i have my questions commented in the program . i had to put most of program up so you could see what im doin. please help
PROTYPES
void side_on_die(int& ns1,int& ns2,int& ns3, int& ns4, int& ns5, int& ns6);
int roll_hold(int roll, int answer, int turn);
int if_roll();
void if_hold();
int main()
side_on_die(ns1,ns2,ns3,ns4,ns5,ns6);
roll_hold(answer);
roll=if_roll();
if_hold();
whose_turn=turn_it_is(player1,player2);
//function that rolls dice. IT DOESNT ROLL I GUESS YOU CAN SAY. I WAS THINKING OF PUTTING THIS IN A SWITCH STATEMENT BUT HAVING PROBLEMS WITH GENERATING RANDOM NUMBER
int if_roll()
{
int which_Num;
unsigned seed = time(0);
srand(seed);
which_Num = rand() % 7;
return which_Num;
}
//function that holds.IT HOLDS BUT NOT HOW I WANT IT 2. U KNOW Y?
void if_hold()
{
system("pause");
}
//function that shows value of side_of_die. IS THIS DOING THIS?
void side_on_die(int& ns1,int& ns2,int& ns3, int& ns4, int& ns5, int& ns6)
{
ns1&=1; ns2&=2;ns3&=3; ns4&=4;ns5&=5;ns6&=6;
}
// function that does action after user has choosen to roll or hold. problem is that it just goes to system pause after the cout statement regardless of the letter choosen. U KNOW Y?
char roll_hold( int& answer)
{
cout<< " Would you like to roll or hold? press r for roll and h for hold.: ";
cin >> answer;
if (answer=='h')
{
cout<< system("pause");
}
return answer;
}