Now that the basic elements of my program are working, I'd like to implement new features. I'm trying to put in a scoring system, by where you get 10 points for every mine you hit.
I've made a bit of test code to show my problem, basically it shows something like 4214848.
The while and system("PAUSE") aren't in my program, just used to show my problem. Basically, I want it to add 10 everytime you hit a mine, but it shows something like this instead.Code:#include <stdlib.h> int player_score; main () { int i=5; while (i--) { player_score=player_score+10; printf("Total Score: %d\n\n", &player_score); system("PAUSE"); } }