#include <iostream>
#include <ctime>
#include <cstdlib>
using namespace std;
i am having trouble putting functions in int main(). can someone show me how??? i want to put these function def. in int main()
int score_num(int& ns1,int& ns2,int& ns3, int& ns4, int& ns5, int& n6, char& gam_answ);
int roll_hold(int roll, int answer, int turn);
int turn_it_is(int& player1, int& player2);
void play_again(char letter);
void display_score(int curr_score);
int score_num(int& ns1,int& ns2,int& ns3, int& ns4, int& ns5, int& n6, char& gam_answ)
{
int turn;
while(char ns1=0)
{
cout << " next player " << ((turn % 2) ==1);
cout << " please select r for roll and h for hold ";
cin >> gam_answ ;
gam_answ++;
}
}
int roll_hold( int& answer)
{
int which_Num;
{
if(answer=='r')
{
do
{
unsigned seed = time(0);
srand(seed);
which_Num = rand() % 7;
}while(answer== 'r');
}
}
{
if (answer=='h')
{
do
{
system("pause");
}while (answer=='h');
}
}
return answer;
}
int turn_it_is(int& player1, int& player2)
{
int go_again;
cout << " it's your turn ";
cin >> go_again;
return go_again;
}
void play_again(char letter)
{
cout << " Would you like to play agian?( press y or n): ";
cin >> letter;
}
void display_score(int curr_score)
{
int gam_answ;
curr_score = gam_answ++;
}
int main ()
{
int total_score, print_score, action, whose_turn, go_again;
cout << "Race to 100 " << endl;
return 0;
}