thanks Salem,
but the problem remains. you see, the user has 5 chances to throw an object and each time it lands somewhere on the ground and the score is given for that.
scores are stored in array
Code:
int scores[10] = { 0,20,30,40,50,60,70,80 };
now if i give user score for his first throw i store it another variable like this:
Code:
give_score = give_score + scores[1]
This will award user score of 20
Now i need to store the scores for 5 throws in another array called get_score_string. how do i do that. I am not sure about the type of this array (int or char) and about its size.
also i tried your code and it just gave garbage value.
thanks