int getTurn(int input)
ok im trying to write a function that throws the dice and tells the player the results and adds up the total score. This function will have the old score as the input and the new score as the output.
int getTurn(int input)
ok im trying to write a function that throws the dice and tells the player the results and adds up the total score. This function will have the old score as the input and the new score as the output.
And your question is??
We aren't just going to write the function for you. Also, put all of your questions about this program in one thread instead of multiple threads.
In case no one has figured it out yet, findme posts to this forum to get people to do his/her homework for them.
no actually i don't. i just need little tips. not someone to do my homework.
Little tips can add up to big programs.
People here generally don't like it when people make a post on what they need to have done without posting an attempt. That's not asking for a tip, that's asking for a foundation, and when you don't understand that, you'll just end up asking people to finish it for you.
Last edited by SlyMaelstrom; 11-29-2005 at 11:11 PM.
Sent from my iPadŽ
Your function will look something like this:
For a dice role you might want to look into srand() and rand() functions.Code:int getTurn(int OldScore) { int NewScore; //insert code to generate new score and assign it to NewScore return NewScore; }