i am having a problem getting a random number 1-6 on an invisible dice
and storing the number. i get this error
|error: at this point in file| for this code:
void roll_hold( char answer, int turn)
{
if(answer=='r')
{
do
{
(rand(turn)% (char& ns1=0,char& ns2=2,char& ns3=3, char& ns4=4, char& ns5=5, char& n6=6,)+1)));
}while(answer== 'r');
}
if (answer=='h')
{
do
{
system("pause");
}while (answer=='h');
}