thanks i got the rand part working now.....
to make it into an actually game-like program......
do the prompts to user..........cin the data.......then use a for loop to count from 10 to 0 (number of try the user gets to guess the number correctly)......
example
guess // is number entered by user
rand_num// is the rand number the program generates
answer// either 'Y' or 'N' meaning yes or no to play game again.
for(int i=0;i<=10;i--)
{
if (guess!=rand_num)
{
cout << "YOu have "<<i<<"tries left.\n";
}
else if (guess==rand_num)
{
cout<< "Good Work............You got the number in ony " << i << " tries.\n";
}
hows that look?
i was thinking of adding....... this at the end
}while(answwer=='y'||'Y')
}